@@ 498-504 (lines=7) @@ | ||
495 | add_submenu_page( $appearance_slug, esc_attr__( 'Customize', 'jetpack' ), __( 'Customize', 'jetpack' ), 'customize', $customize_slug, null, 5 ); |
|
496 | add_submenu_page( $appearance_slug, esc_attr__( 'Themes', 'jetpack' ), __( 'Themes', 'jetpack' ), 'switch_themes', $themes_slug, null, 10 ); |
|
497 | ||
498 | if ( current_theme_supports( 'custom-header' ) && $user_can_customize ) { |
|
499 | $customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url ); |
|
500 | remove_submenu_page( 'themes.php', $customize_header_url ); |
|
501 | ||
502 | $customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $appearance_slug ); |
|
503 | add_submenu_page( $appearance_slug, __( 'Header', 'jetpack' ), __( 'Header', 'jetpack' ), $appearance_cap, esc_url( $customize_header_url ), null, 15 ); |
|
504 | } |
|
505 | ||
506 | if ( current_theme_supports( 'custom-background' ) && $user_can_customize ) { |
|
507 | $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); |
|
@@ 506-512 (lines=7) @@ | ||
503 | add_submenu_page( $appearance_slug, __( 'Header', 'jetpack' ), __( 'Header', 'jetpack' ), $appearance_cap, esc_url( $customize_header_url ), null, 15 ); |
|
504 | } |
|
505 | ||
506 | if ( current_theme_supports( 'custom-background' ) && $user_can_customize ) { |
|
507 | $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); |
|
508 | remove_submenu_page( 'themes.php', $customize_background_url ); |
|
509 | ||
510 | $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $appearance_slug ); |
|
511 | add_submenu_page( $appearance_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), $appearance_cap, esc_url( $customize_background_url ), null, 20 ); |
|
512 | } |
|
513 | ||
514 | if ( current_theme_supports( 'widgets' ) ) { |
|
515 | remove_submenu_page( 'themes.php', 'widgets.php' ); |