Changeset 33112
- Timestamp:
- 07/07/2015 05:48:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/nav-menus.php
r33067 r33112 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 <?php endif; ?>566 565 <?php 567 if ( current_user_can( 'customize' ) ) { 566 endif; 567 568 if ( current_user_can( 'customize' ) ) : 569 $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' ); 568 570 printf( 569 571 ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', 570 esc_url( add_query_arg( 571 array( 572 array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), 573 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) 574 ), 575 admin_url( 'customize.php' ) 576 ) ), 572 esc_url( add_query_arg( array( 573 array( 'autofocus' => $focus ), 574 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 575 ), admin_url( 'customize.php' ) ) ), 577 576 __( 'Manage in Customizer' ) 578 577 ); 579 }578 endif; 580 579 ?> 581 580 </h1>
Note: See TracChangeset
for help on using the changeset viewer.