Skip to content

Commit

Permalink
Load Scheduled_Updates for non-wpcom users (#38772)
Browse files Browse the repository at this point in the history
* Load Scheduled_Updates for non wpcom users

* changelog

* Update version to 5.54.1-alpha
  • Loading branch information
phcp authored Aug 8, 2024
1 parent c76aa10 commit a20e801
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Load Scheduled_Updates for non-wpcom users
2 changes: 1 addition & 1 deletion projects/packages/jetpack-mu-wpcom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-mu-wpcom",
"version": "5.54.0",
"version": "5.54.1-alpha",
"description": "Enhances your site with features powered by WordPress.com",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/jetpack-mu-wpcom/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Jetpack_Mu_Wpcom main class.
*/
class Jetpack_Mu_Wpcom {
const PACKAGE_VERSION = '5.54.0';
const PACKAGE_VERSION = '5.54.1-alpha';
const PKG_DIR = __DIR__ . '/../';
const BASE_DIR = __DIR__ . '/';
const BASE_FILE = __FILE__;
Expand Down Expand Up @@ -113,6 +113,11 @@ public static function load_features() {
\Marketplace_Products_Updater::init();
\Automattic\Jetpack\Classic_Theme_Helper\Main::init();
\Automattic\Jetpack\Classic_Theme_Helper\Featured_Content::setup();

// Gets autoloaded from the Scheduled_Updates package.
if ( class_exists( 'Automattic\Jetpack\Scheduled_Updates' ) ) {
Scheduled_Updates::init();
}
}

/**
Expand Down Expand Up @@ -145,10 +150,6 @@ public static function load_wpcom_user_features() {
// This is temporary. After we cleanup Masterbar on WPCOM we should load Masterbar for Simple sites too.
\Automattic\Jetpack\Masterbar\Main::init();
}
// Gets autoloaded from the Scheduled_Updates package.
if ( class_exists( 'Automattic\Jetpack\Scheduled_Updates' ) ) {
Scheduled_Updates::init();
}
}

/**
Expand Down

0 comments on commit a20e801

Please sign in to comment.