|
@@ 300-305 (lines=6) @@
|
| 297 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), 'customize', esc_url( $customize_background_url ), null, 20 ); |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
if ( current_theme_supports( 'widgets' ) ) { |
| 301 |
|
remove_submenu_page( 'themes.php', 'widgets.php' ); |
| 302 |
|
|
| 303 |
|
$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_slug ); |
| 304 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 305 |
|
} |
| 306 |
|
|
| 307 |
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| 308 |
|
remove_submenu_page( 'themes.php', 'nav-menus.php' ); |
|
@@ 307-312 (lines=6) @@
|
| 304 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 305 |
|
} |
| 306 |
|
|
| 307 |
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { |
| 308 |
|
remove_submenu_page( 'themes.php', 'nav-menus.php' ); |
| 309 |
|
|
| 310 |
|
$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_slug ); |
| 311 |
|
add_submenu_page( $themes_slug, esc_attr__( 'Menus', 'jetpack' ), __( 'Menus', 'jetpack' ), 'customize', esc_url( $customize_menu_url ), null, 20 ); |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
$this->migrate_submenus( 'themes.php', $themes_slug ); |
| 315 |
|
add_filter( 'parent_file', array( $this, 'appearance_parent_file' ) ); |