Make WordPress Core


Ignore:
Timestamp:
11/20/2015 05:45:57 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Customizer: Use correct context and translator comments for menu location strings.

See #33431.

File:
1 edited

Legend:

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

    r33862 r35722  
    799799                                        <?php foreach ( $locations as $location => $description ) : ?>
    800800                                        <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>
    802803                                            <?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>
    804810                                            <?php endif; ?>
    805811                                        </dd>
Note: See TracChangeset for help on using the changeset viewer.