@@ 471-477 (lines=7) @@ | ||
468 | add_submenu_page( $appearance_slug, esc_attr__( 'Customize', 'jetpack' ), __( 'Customize', 'jetpack' ), 'customize', $customize_slug, null, 5 ); |
|
469 | add_submenu_page( $appearance_slug, esc_attr__( 'Themes', 'jetpack' ), __( 'Themes', 'jetpack' ), 'switch_themes', $themes_slug, null, 10 ); |
|
470 | ||
471 | if ( current_theme_supports( 'custom-header' ) && $user_can_customize ) { |
|
472 | $customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url ); |
|
473 | remove_submenu_page( 'themes.php', $customize_header_url ); |
|
474 | ||
475 | $customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $appearance_slug ); |
|
476 | add_submenu_page( $appearance_slug, __( 'Header', 'jetpack' ), __( 'Header', 'jetpack' ), $appearance_cap, esc_url( $customize_header_url ), null, 15 ); |
|
477 | } |
|
478 | ||
479 | if ( current_theme_supports( 'custom-background' ) && $user_can_customize ) { |
|
480 | $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); |
|
@@ 479-485 (lines=7) @@ | ||
476 | add_submenu_page( $appearance_slug, __( 'Header', 'jetpack' ), __( 'Header', 'jetpack' ), $appearance_cap, esc_url( $customize_header_url ), null, 15 ); |
|
477 | } |
|
478 | ||
479 | if ( current_theme_supports( 'custom-background' ) && $user_can_customize ) { |
|
480 | $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); |
|
481 | remove_submenu_page( 'themes.php', $customize_background_url ); |
|
482 | ||
483 | $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $appearance_slug ); |
|
484 | add_submenu_page( $appearance_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), $appearance_cap, esc_url( $customize_background_url ), null, 20 ); |
|
485 | } |
|
486 | ||
487 | if ( current_theme_supports( 'widgets' ) ) { |
|
488 | remove_submenu_page( 'themes.php', 'widgets.php' ); |