Skip to content

Commit

Permalink
Enable the Image Guide without a feature-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark George committed Jan 10, 2023
1 parent c1609ce commit 42d6d84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 42d6d84

Please sign in to comment.