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