Ticket #37026: 37026.patch
| File 37026.patch, 1.5 KB (added by , 10 years ago) |
|---|
-
wp-admin/nav-menus.php
830 830 <input type="checkbox"<?php checked( isset( $menu_locations[ $location ] ) && $menu_locations[ $location ] == $nav_menu_selected_id ); ?> name="menu-locations[<?php echo esc_attr( $location ); ?>]" id="locations-<?php echo esc_attr( $location ); ?>" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> 831 831 <label for="locations-<?php echo esc_attr( $location ); ?>"><?php echo $description; ?></label> 832 832 <?php if ( ! empty( $menu_locations[ $location ] ) && $menu_locations[ $location ] != $nav_menu_selected_id ) : ?> 833 <span class="theme-location-set"><?php 834 /* translators: %s: menu name */ 835 printf( _x( '(Currently set to: %s)', 'menu location' ), 836 wp_get_nav_menu_object( $menu_locations[ $location ] )->name 837 ); 838 ?></span> 833 <?php $menu = wp_get_nav_menu_object( $menu_locations[ $location ] ); ?> 834 <?php if ( $menu && ! is_wp_error( $menu ) ) : ?> 835 <span class="theme-location-set"><?php 836 /* translators: %s: menu name */ 837 printf( _x( '(Currently set to: %s)', 'menu location' ), 838 $menu->name 839 ); 840 ?></span> 841 <?php endif; ?> 839 842 <?php endif; ?> 840 843 </dd> 841 844 <?php endforeach; ?>