|
@@ 273-279 (lines=7) @@
|
| 270 |
|
add_submenu_page( $appearance_slug, esc_attr__( 'Customize', 'jetpack' ), __( 'Customize', 'jetpack' ), 'customize', $customize_slug, null, 5 ); |
| 271 |
|
add_submenu_page( $appearance_slug, esc_attr__( 'Themes', 'jetpack' ), __( 'Themes', 'jetpack' ), 'switch_themes', $themes_slug, null, 10 ); |
| 272 |
|
|
| 273 |
|
if ( current_theme_supports( 'custom-header' ) && $user_can_customize ) { |
| 274 |
|
$customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url ); |
| 275 |
|
remove_submenu_page( 'themes.php', $customize_header_url ); |
| 276 |
|
|
| 277 |
|
$customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $appearance_slug ); |
| 278 |
|
add_submenu_page( $appearance_slug, __( 'Header', 'jetpack' ), __( 'Header', 'jetpack' ), $appearance_cap, esc_url( $customize_header_url ), null, 15 ); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
if ( current_theme_supports( 'custom-background' ) && $user_can_customize ) { |
| 282 |
|
$customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); |
|
@@ 281-287 (lines=7) @@
|
| 278 |
|
add_submenu_page( $appearance_slug, __( 'Header', 'jetpack' ), __( 'Header', 'jetpack' ), $appearance_cap, esc_url( $customize_header_url ), null, 15 ); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
if ( current_theme_supports( 'custom-background' ) && $user_can_customize ) { |
| 282 |
|
$customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); |
| 283 |
|
remove_submenu_page( 'themes.php', $customize_background_url ); |
| 284 |
|
|
| 285 |
|
$customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $appearance_slug ); |
| 286 |
|
add_submenu_page( $appearance_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), $appearance_cap, esc_url( $customize_background_url ), null, 20 ); |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
if ( current_theme_supports( 'widgets' ) ) { |
| 290 |
|
remove_submenu_page( 'themes.php', 'widgets.php' ); |