PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | lib/experimental/extensible-site-editor.php +4 -7 23.5.3 → trunk View file →
@@ -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 ) {