WordPress.org

Make WordPress Core

Ticket #10005: entities-in-jsAlert.diff

File entities-in-jsAlert.diff, 749 bytes (added by xibe, 6 years ago)

Translator comments; warning about use of HTML entities in JS alert() message

  • script-loader.php

     
    7373        $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20090307' ); 
    7474        $scripts->localize( 'quicktags', 'quicktagsL10n', array( 
    7575                'quickLinks' => __('(Quick Links)'), 
    76                 'wordLookup' => __('Enter a word to look up:'), 
     76                'wordLookup' => /* translators: do not use HTML entities ( , etc.): string is used in JavaScript alert() message */ __('Enter a word to look up:'), 
    7777                'dictionaryLookup' => esc_attr(__('Dictionary lookup')), 
    7878                'lookup' => esc_attr(__('lookup')), 
    7979                'closeAllOpenTags' => esc_attr(__('Close all open tags')),