Changeset 24158 for trunk/wp-admin/nav-menus.php
- Timestamp:
- 05/02/2013 12:38:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/nav-menus.php
r23897 r24158 380 380 $one_theme_location_no_menus = ( 1 == count( get_registered_nav_menus() ) && ! $add_new_screen && empty( $nav_menus ) && ! empty( $page_count->publish ) ) ? true : false; 381 381 382 $ l10n = array(382 $nav_menus_l10n = array( 383 383 'oneThemeLocationNoMenus' => $one_theme_location_no_menus, 384 384 'moveUp' => __( 'Move up one' ), … … 398 398 'subMenuFocus' => __( '%1$s. Sub item number %2$d under %3$s.' ), 399 399 ); 400 wp_localize_script( 'nav-menu', 'menus', $ l10n );400 wp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n ); 401 401 402 402 // Redirect to add screen if there are no menus and this users has either zero, or more than 1 theme locations
Note: See TracChangeset
for help on using the changeset viewer.