WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/04/2014 09:09:32 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Use esc_attr_e() instead of _e() for attribute values.

props DJPaul.
fixes #27274.

File:
1 edited

Legend:

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

    r27036 r27400  
    657657                <?php endforeach; ?>
    658658            </select>
    659             <span class="submit-btn"><input type="submit" class="button-secondary" value="<?php _e( 'Select' ); ?>"></span>
     659            <span class="submit-btn"><input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Select' ); ?>"></span>
    660660            <span class="add-new-menu-action">
    661661                <?php printf( __( 'or <a href="%s">create a new menu</a>.' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-menus.php' ) ) ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.