Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (15 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r11093 r11109  
    7575        'quickLinks' => __('(Quick Links)'),
    7676        'wordLookup' => __('Enter a word to look up:'),
    77         'dictionaryLookup' => attribute_escape(__('Dictionary lookup')),
    78         'lookup' => attribute_escape(__('lookup')),
    79         'closeAllOpenTags' => attribute_escape(__('Close all open tags')),
    80         'closeTags' => attribute_escape(__('close tags')),
     77        'dictionaryLookup' => attr(__('Dictionary lookup')),
     78        'lookup' => attr(__('lookup')),
     79        'closeAllOpenTags' => attr(__('Close all open tags')),
     80        'closeTags' => attr(__('close tags')),
    8181        'enterURL' => __('Enter the URL'),
    8282        'enterImageURL' => __('Enter the URL of the image'),
     
    213213        $scripts->add_data( 'ajaxcat', 'group', 1 );
    214214        $scripts->localize( 'ajaxcat', 'catL10n', array(
    215             'add' => attribute_escape(__('Add')),
     215            'add' => attr(__('Add')),
    216216            'how' => __('Separate multiple categories with commas.'),
    217217            'l10n_print_after' => 'try{convertEntities(catL10n);}catch(e){};'
     
    267267        $scripts->localize( 'post', 'postL10n', array(
    268268            'tagsUsed' =>  __('Tags used on this post:'),
    269             'add' => attribute_escape(__('Add')),
    270             'addTag' => attribute_escape(__('Add new tag')),
     269            'add' => attr(__('Add')),
     270            'addTag' => attr(__('Add new tag')),
    271271            'separate' => __('Separate tags with commas'),
    272272            'cancel' => __('Cancel'),
     
    605605        $ver = md5("$wp_scripts->concat_version");
    606606        $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim($wp_scripts->concat, ', ') . "&ver=$ver";
    607         echo "<script type='text/javascript' src='" . attribute_escape($src) . "'></script>\n";
     607        echo "<script type='text/javascript' src='" . attr($src) . "'></script>\n";
    608608    }
    609609
     
    672672            $ver = md5("$wp_styles->concat_version{$dir}");
    673673            $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . "&ver=$ver";
    674             echo "<link rel='stylesheet' href='" . attribute_escape($href) . "' type='text/css' media='all' />\n";
     674            echo "<link rel='stylesheet' href='" . attr($href) . "' type='text/css' media='all' />\n";
    675675        }
    676676
Note: See TracChangeset for help on using the changeset viewer.