Make WordPress Core


Ignore:
Timestamp:
05/02/2013 12:38:25 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Fix localization on Edit Menus screen. props kovshenin. fixes #24228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r23897 r24158  
    380380$one_theme_location_no_menus = ( 1 == count( get_registered_nav_menus() ) && ! $add_new_screen && empty( $nav_menus ) && ! empty( $page_count->publish ) ) ? true : false;
    381381
    382 $l10n = array(
     382$nav_menus_l10n = array(
    383383    'oneThemeLocationNoMenus' => $one_theme_location_no_menus,
    384384    'moveUp'       => __( 'Move up one' ),
     
    398398    'subMenuFocus' => __( '%1$s. Sub item number %2$d under %3$s.' ),
    399399);
    400 wp_localize_script( 'nav-menu', 'menus', $l10n );
     400wp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n );
    401401
    402402// 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.