|
@@ 431-436 (lines=6) @@
|
| 428 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), 'customize', esc_url( $customize_background_url ), null, 20 ); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
if ( current_theme_supports( 'widgets' ) ) { |
| 432 |
|
remove_submenu_page( 'themes.php', 'widgets.php' ); |
| 433 |
|
|
| 434 |
|
$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $this->customize_slug ); |
| 435 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| 439 |
|
remove_submenu_page( 'themes.php', 'nav-menus.php' ); |
|
@@ 438-443 (lines=6) @@
|
| 435 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| 439 |
|
remove_submenu_page( 'themes.php', 'nav-menus.php' ); |
| 440 |
|
|
| 441 |
|
$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $this->customize_slug ); |
| 442 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Menus', 'jetpack' ), __( 'Menus', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
// Register menu for the Custom CSS Jetpack module, but don't add it as a menu item. |
| 446 |
|
$GLOBALS['_registered_pages']['admin_page_editcss'] = true; // phpcs:ignore |