Skip to content

Commit

Permalink
Simple Classic: Remove the experiment gating for the Admin Interface …
Browse files Browse the repository at this point in the history
…Style setting (#38774)
  • Loading branch information
taipeicoder authored Aug 8, 2024
1 parent 429aba0 commit 431095b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Removed gating logic for wpcom_admin_interface_settings_field
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ function wpcom_admin_interface_display() {
echo '<label><input type="radio" name="wpcom_admin_interface" value="calypso" ' . checked( 'calypso', $value, false ) . '/> <span>' . esc_html__( 'Default style', 'jetpack-mu-wpcom' ) . '</span></label><p>' . esc_html__( 'Use WordPress.com’s legacy dashboard to manage your site.', 'jetpack-mu-wpcom' ) . '</p><br>';
echo '</fieldset>';
}

if (
// The option should always be available on atomic sites.
! ( defined( 'IS_WPCOM' ) && IS_WPCOM ) ||
// The option will be shown if the simple site has already changed to Classic which means they should have already passed the experiment gate.
( get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) ) {
add_action( 'admin_init', 'wpcomsh_wpcom_admin_interface_settings_field' );
}
add_action( 'admin_init', 'wpcomsh_wpcom_admin_interface_settings_field' );

/**
* Track the wpcom_admin_interface_changed event.
Expand Down

0 comments on commit 431095b

Please sign in to comment.