Ticket #32576: 32576.link-updates.diff
File 32576.link-updates.diff, 2.3 KB (added by , 9 years ago) |
---|
-
src/wp-admin/nav-menus.php
563 563 <?php if ( $num_locations && $menu_count ) : ?> 564 564 <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a> 565 565 <?php endif; ?> 566 <?php 567 if ( current_user_can( 'customize' ) ) { 568 printf( 569 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>', 570 esc_url( add_query_arg( 571 array( 572 array( 'autofocus' => array( 'panel' => 'menus' ) ), 573 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) 574 ), 575 admin_url( 'customize.php' ) 576 ) ), 577 __( 'Manage in Customizer' ) 578 ); 579 } 580 ?> 566 581 </h2> 567 582 <?php 568 583 foreach( $messages as $message ) : -
src/wp-includes/admin-bar.php
732 732 } 733 733 } 734 734 735 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 736 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) ); 735 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { 736 $wp_admin_bar->add_menu( array( 737 'parent' => 'appearance', 738 'id' => 'menus', 739 'title' => __( 'Menus' ), 740 'href' => admin_url( 'nav-menus.php' ), 741 'meta' => array( 742 'class' => 'hide-if-customize', 743 ), 744 ) ); 737 745 746 if ( current_user_can( 'customize' ) ) { 747 $wp_admin_bar->add_menu( array( 748 'parent' => 'appearance', 749 'id' => 'customize-menus', 750 'title' => __( 'Menus' ), 751 'href' => add_query_arg( urlencode( 'autofocus[panel]' ), 'menus', $customize_url ), // urlencode() needed due to #16859 752 'meta' => array( 753 'class' => 'hide-if-no-customize', 754 ), 755 ) ); 756 } 757 } 758 738 759 if ( current_theme_supports( 'custom-background' ) ) { 739 760 $wp_admin_bar->add_menu( array( 740 761 'parent' => 'appearance',