| @@ -1,23 +1,20 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Extensible Site Editor experiment integration. |
| 4 | 4 | * |
| 5 | + * Only loaded while the `gutenberg-extensible-site-editor` experiment is | |
| 6 | + * enabled (see lib/load.php). | |
| 7 | + * | |
| 5 | 8 | * @package gutenberg |
| 6 | 9 | */ |
| 7 | 10 | |
| 8 | 11 | /** |
| 9 | - * Redirect the Appearance > Design menu to the extensible site editor | |
| 10 | - * when the experiment is enabled. | |
| 12 | + * Redirect the Appearance > Design menu to the extensible site editor. | |
| 11 | 13 | * |
| 12 | 14 | * @global array $submenu WordPress admin submenu array. |
| 13 | 15 | */ |
| 14 | 16 | function gutenberg_redirect_to_extensible_site_editor() { |
| 15 | - // Only proceed if the experiment is enabled. | |
| 16 | - if ( ! gutenberg_is_experiment_enabled( 'gutenberg-extensible-site-editor' ) ) { | |
| 17 | - return; | |
| 18 | - } | |
| 19 | - | |
| 20 | 17 | // Update the Design submenu item to point to the extensible site editor. |
| 21 | 18 | global $submenu; |
| 22 | 19 | if ( $submenu && isset( $submenu['themes.php'] ) ) { |
| 23 | 20 | foreach ( $submenu['themes.php'] as $key => $item ) { |