Skip to content

Commit

Permalink
Tweak: check on fresh installation
Browse files Browse the repository at this point in the history
  • Loading branch information
AleTorrisi committed Jan 27, 2025
1 parent 03c49e2 commit 27bb692
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/Performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 27bb692

Please sign in to comment.