_a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -74,10 +74,10 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->localize( 'quicktags', 'quicktagsL10n', array(
|
||||
'quickLinks' => __('(Quick Links)'),
|
||||
'wordLookup' => __('Enter a word to look up:'),
|
||||
'dictionaryLookup' => attr(__('Dictionary lookup')),
|
||||
'lookup' => attr(__('lookup')),
|
||||
'closeAllOpenTags' => attr(__('Close all open tags')),
|
||||
'closeTags' => attr(__('close tags')),
|
||||
'dictionaryLookup' => esc_attr(__('Dictionary lookup')),
|
||||
'lookup' => esc_attr(__('lookup')),
|
||||
'closeAllOpenTags' => esc_attr(__('Close all open tags')),
|
||||
'closeTags' => esc_attr(__('close tags')),
|
||||
'enterURL' => __('Enter the URL'),
|
||||
'enterImageURL' => __('Enter the URL of the image'),
|
||||
'enterImageDescription' => __('Enter a description of the image'),
|
||||
@@ -212,7 +212,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'ajaxcat', "/wp-admin/js/cat$suffix.js", array( 'wp-lists' ), '20090102' );
|
||||
$scripts->add_data( 'ajaxcat', 'group', 1 );
|
||||
$scripts->localize( 'ajaxcat', 'catL10n', array(
|
||||
'add' => attr(__('Add')),
|
||||
'add' => esc_attr(__('Add')),
|
||||
'how' => __('Separate multiple categories with commas.'),
|
||||
'l10n_print_after' => 'try{convertEntities(catL10n);}catch(e){};'
|
||||
) );
|
||||
@@ -266,8 +266,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add_data( 'post', 'group', 1 );
|
||||
$scripts->localize( 'post', 'postL10n', array(
|
||||
'tagsUsed' => __('Tags used on this post:'),
|
||||
'add' => attr(__('Add')),
|
||||
'addTag' => attr(__('Add new tag')),
|
||||
'add' => esc_attr(__('Add')),
|
||||
'addTag' => esc_attr(__('Add new tag')),
|
||||
'separate' => __('Separate tags with commas'),
|
||||
'cancel' => __('Cancel'),
|
||||
'edit' => __('Edit'),
|
||||
@@ -604,7 +604,7 @@ function _print_scripts() {
|
||||
|
||||
$ver = md5("$wp_scripts->concat_version");
|
||||
$src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim($wp_scripts->concat, ', ') . "&ver=$ver";
|
||||
echo "<script type='text/javascript' src='" . attr($src) . "'></script>\n";
|
||||
echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";
|
||||
}
|
||||
|
||||
if ( !empty($wp_scripts->print_html) )
|
||||
@@ -671,7 +671,7 @@ function print_admin_styles() {
|
||||
$dir = $wp_styles->text_direction;
|
||||
$ver = md5("$wp_styles->concat_version{$dir}");
|
||||
$href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . "&ver=$ver";
|
||||
echo "<link rel='stylesheet' href='" . attr($href) . "' type='text/css' media='all' />\n";
|
||||
echo "<link rel='stylesheet' href='" . esc_attr($href) . "' type='text/css' media='all' />\n";
|
||||
}
|
||||
|
||||
if ( !empty($wp_styles->print_html) )
|
||||
|
||||
Reference in New Issue
Block a user