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

props DJPaul.
fixes #27274.

git-svn-id: https://develop.svn.wordpress.org/trunk@27400 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-03-04 21:09:32 +00:00
parent 58dc8ab25c
commit d87cac2093
2 changed files with 3 additions and 3 deletions

View File

@ -656,7 +656,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
</option>
<?php endforeach; ?>
</select>
<span class="submit-btn"><input type="submit" class="button-secondary" value="<?php _e( 'Select' ); ?>"></span>
<span class="submit-btn"><input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Select' ); ?>"></span>
<span class="add-new-menu-action">
<?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' ) ) ) ); ?>
</span><!-- /add-new-menu-action -->

View File

@ -152,11 +152,11 @@ function wp_print_media_templates() {
<# } #>
<# if ( data.buttons.close ) { #>
<a class="close media-modal-icon" href="#" title="<?php _e('Remove'); ?>"></a>
<a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>
<# } #>
<# if ( data.buttons.check ) { #>
<a class="check" href="#" title="<?php _e('Deselect'); ?>"><div class="media-modal-icon"></div></a>
<a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>"><div class="media-modal-icon"></div></a>
<# } #>
</div>
<#