diff --git a/projects/plugins/boost/app/features/image-guide/Image_Guide.php b/projects/plugins/boost/app/features/image-guide/Image_Guide.php index 345f301c5f7bf..8d6d2ff5e9aa0 100644 --- a/projects/plugins/boost/app/features/image-guide/Image_Guide.php +++ b/projects/plugins/boost/app/features/image-guide/Image_Guide.php @@ -15,7 +15,7 @@ public function setup() { } // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $override = defined( 'JETPACK_BOOST_IMAGE_GUIDE' ) && JETPACK_BOOST_IMAGE_GUIDE && isset( $_GET['jb-debug-ig'] ); + $override = isset( $_GET['jb-debug-ig'] ); // Show the UI only when the user is logged in, with sufficient permissions and isn't looking at the dashboard. if ( true !== $override && ( is_admin() || ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) ) { diff --git a/projects/plugins/boost/app/features/optimizations/Optimizations.php b/projects/plugins/boost/app/features/optimizations/Optimizations.php index 23ba293d38758..a39b39267f443 100644 --- a/projects/plugins/boost/app/features/optimizations/Optimizations.php +++ b/projects/plugins/boost/app/features/optimizations/Optimizations.php @@ -35,12 +35,9 @@ public function __construct() { new $critical_css_class(), new Lazy_Images(), new Render_Blocking_JS(), + new Image_Guide(), ); - if ( defined( 'JETPACK_BOOST_IMAGE_GUIDE' ) && JETPACK_BOOST_IMAGE_GUIDE ) { - $features[] = new Image_Guide(); - } - foreach ( $features as $feature ) { $slug = $feature->get_slug(); $this->features[ $slug ] = new Optimization( $feature ); diff --git a/projects/plugins/boost/changelog/boost-enable-image-guide b/projects/plugins/boost/changelog/boost-enable-image-guide new file mode 100644 index 0000000000000..0f6da559ae2c8 --- /dev/null +++ b/projects/plugins/boost/changelog/boost-enable-image-guide @@ -0,0 +1,4 @@ +Significance: patch +Type: added + +Enable the Image Guide feature without a constant