From a20e801baa42cc1a351aae20b05a9c58b55f7181 Mon Sep 17 00:00:00 2001 From: Paulo Cruz Date: Thu, 8 Aug 2024 10:06:04 -0300 Subject: [PATCH] Load Scheduled_Updates for non-wpcom users (#38772) * Load Scheduled_Updates for non wpcom users * changelog * Update version to 5.54.1-alpha --- .../changelog/fix-load-scheduled-updates | 4 ++++ projects/packages/jetpack-mu-wpcom/package.json | 2 +- .../jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php | 11 ++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 projects/packages/jetpack-mu-wpcom/changelog/fix-load-scheduled-updates diff --git a/projects/packages/jetpack-mu-wpcom/changelog/fix-load-scheduled-updates b/projects/packages/jetpack-mu-wpcom/changelog/fix-load-scheduled-updates new file mode 100644 index 0000000000000..21a0f6ed5cb27 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/fix-load-scheduled-updates @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Load Scheduled_Updates for non-wpcom users diff --git a/projects/packages/jetpack-mu-wpcom/package.json b/projects/packages/jetpack-mu-wpcom/package.json index 487ac43ea90ce..2d55a2e51017a 100644 --- a/projects/packages/jetpack-mu-wpcom/package.json +++ b/projects/packages/jetpack-mu-wpcom/package.json @@ -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": { diff --git a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php index dcf9ad119bc81..424b3f3710f8d 100644 --- a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php +++ b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php @@ -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__; @@ -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(); + } } /** @@ -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(); - } } /**