Changeset 35722 for trunk/src/wp-admin/nav-menus.php
- Timestamp:
- 11/20/2015 05:45:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/nav-menus.php
r33862 r35722 799 799 <?php foreach ( $locations as $location => $description ) : ?> 800 800 <dd class="checkbox-input"> 801 <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 ); ?>" /> <label for="locations-<?php echo esc_attr( $location ); ?>"><?php echo $description; ?></label> 801 <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 ); ?>" /> 802 <label for="locations-<?php echo esc_attr( $location ); ?>"><?php echo $description; ?></label> 802 803 <?php if ( ! empty( $menu_locations[ $location ] ) && $menu_locations[ $location ] != $nav_menu_selected_id ) : ?> 803 <span class="theme-location-set"> <?php printf( __( "(Currently set to: %s)" ), wp_get_nav_menu_object( $menu_locations[ $location ] )->name ); ?> </span> 804 <span class="theme-location-set"><?php 805 /* translators: %s: menu name */ 806 printf( _x( '(Currently set to: %s)', 'menu location' ), 807 wp_get_nav_menu_object( $menu_locations[ $location ] )->name 808 ); 809 ?></span> 804 810 <?php endif; ?> 805 811 </dd>
Note: See TracChangeset
for help on using the changeset viewer.