|
@@ 371-376 (lines=6) @@
|
| 368 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), 'customize', esc_url( $customize_background_url ), null, 20 ); |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
if ( current_theme_supports( 'widgets' ) ) { |
| 372 |
|
remove_submenu_page( 'themes.php', 'widgets.php' ); |
| 373 |
|
|
| 374 |
|
$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_slug ); |
| 375 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 376 |
|
} |
| 377 |
|
|
| 378 |
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| 379 |
|
remove_submenu_page( 'themes.php', 'nav-menus.php' ); |
|
@@ 378-383 (lines=6) @@
|
| 375 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 376 |
|
} |
| 377 |
|
|
| 378 |
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| 379 |
|
remove_submenu_page( 'themes.php', 'nav-menus.php' ); |
| 380 |
|
|
| 381 |
|
$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_slug ); |
| 382 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Menus', 'jetpack' ), __( 'Menus', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
$this->migrate_submenus( 'themes.php', $themes_slug ); |
| 386 |
|
add_filter( 'parent_file', array( $this, 'appearance_parent_file' ) ); |