Make WordPress Core

Changeset 27400


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

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

props DJPaul.
fixes #27274.

Location:
trunk/src
Files:
2 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' ) ) ) ); ?>
  • trunk/src/wp-includes/media-template.php

    r27369 r27400  
    153153
    154154            <# if ( data.buttons.close ) { #>
    155                 <a class="close media-modal-icon" href="#" title="<?php _e('Remove'); ?>"></a>
     155                <a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>
    156156            <# } #>
    157157
    158158            <# if ( data.buttons.check ) { #>
    159                 <a class="check" href="#" title="<?php _e('Deselect'); ?>"><div class="media-modal-icon"></div></a>
     159                <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>"><div class="media-modal-icon"></div></a>
    160160            <# } #>
    161161        </div>
Note: See TracChangeset for help on using the changeset viewer.