Skip to content

Commit b736fcc

Browse files
mattwiebematticbot
authored andcommitted
Launchpad: migrate business logic to Task definitions (#30472)
* Active task listener callbacks for updating task completion * Use the task registry for REST API registration details * Port remaining Launchpad functionality from mu-plugin * unhook old plugin properly * allow a visibility callback, for verify_email * Fix tests * VideoPress compat Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4897467744
1 parent 5bd8172 commit b736fcc

File tree

9 files changed

+572
-149
lines changed

9 files changed

+572
-149
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "wordpress-plugin",
55
"license": "GPL-2.0-or-later",
66
"require": {
7-
"automattic/jetpack-mu-wpcom": "^1.7.1-alpha"
7+
"automattic/jetpack-mu-wpcom": "^1.8.0-alpha"
88
},
99
"require-dev": {
1010
"yoast/phpunit-polyfills": "1.0.4",

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.7.1-alpha] - unreleased
8+
## [1.8.0-alpha] - unreleased
99

1010
This is an alpha version! The changes listed here are not final.
1111

12+
### Changed
13+
- Migrates Launchpad business logic from the mu-plugin to being defined by tasks
14+
1215
### Fixed
1316
- Avoid hooking Map settings multiple times.
1417
- Ensure Map block settings get hooked to existing block bbubundle.
@@ -130,7 +133,7 @@ This is an alpha version! The changes listed here are not final.
130133

131134
- Testing initial package release.
132135

133-
[1.7.1-alpha]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.7.0...v1.7.1-alpha
136+
[1.8.0-alpha]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.7.0...v1.8.0-alpha
134137
[1.7.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.6.0...v1.7.0
135138
[1.6.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.5.1...v1.6.0
136139
[1.5.1]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.5.0...v1.5.1

vendor/automattic/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function init() {
3333
// Coming Soon feature.
3434
add_action( 'plugins_loaded', array( __CLASS__, 'load_coming_soon' ) );
3535
add_action( 'plugins_loaded', array( __CLASS__, 'load_wpcom_rest_api_endpoints' ) );
36-
add_action( 'plugins_loaded', array( __CLASS__, 'load_launchpad' ) );
36+
add_action( 'plugins_loaded', array( __CLASS__, 'load_launchpad' ), 0 );
3737

3838
// Unified navigation fix for changes in WordPress 6.2.
3939
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'unbind_focusout_on_wp_admin_bar_menu_toggle' ) );

0 commit comments

Comments
 (0)