From 27bb692664cc9aa13e5c5dbb6766c41a54a254d0 Mon Sep 17 00:00:00 2001 From: Alessio Torrisi Date: Mon, 27 Jan 2025 09:33:15 +0100 Subject: [PATCH] Tweak: check on fresh installation --- includes/Performance.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Performance.php b/includes/Performance.php index 03c998c..b9d073d 100644 --- a/includes/Performance.php +++ b/includes/Performance.php @@ -369,8 +369,7 @@ public function isJetPackBoostActive() { * @return void */ public function set_default_values_for_jetpack_boost() { - $isFreshInstall = container()->get( 'isFreshInstallation' ); - if ( $isFreshInstall && defined( 'JETPACK_BOOST_VERSION' ) ) { + if ( container()->has( 'isFreshInstallation' ) && defined( 'JETPACK_BOOST_VERSION' ) ) { update_option( 'jetpack_boost_status_minify-js', true ); update_option( 'jetpack_boost_status_minify-css', true ); }