Make WordPress Core


Ignore:
Timestamp:
11/28/2006 09:51:13 PM (19 years ago)
Author:
ryan
Message:

Use js_escape. Props nbachiyski. fixes #3399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/dbx-admin-key-js.php

    r4495 r4535  
    3333        'yes',          // include open/close toggle buttons ['yes'|'no']
    3434        'closed',       // default state ['open'|'closed']
    35         'open',         // word for "open", as in "open this box"
    36         'close',        // word for "close", as in "close this box"
    37         'click-down and drag to move this box', // sentence for "move this box" by mouse
    38         'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
    39         'use the arrow keys to move this box', // sentence for "move this box" by keyboard
    40         ', or press the enter key to %toggle% it',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
     35        '<?php echo js_escape(__('open')); ?>',         // word for "open", as in "open this box"
     36        '<?php echo js_escape(__('close')); ?>',        // word for "close", as in "close this box"
     37        '<?php echo js_escape(__('click-down and drag to move this box')); ?>', // sentence for "move this box" by mouse
     38        '<?php echo js_escape(__('click to %toggle% this box')); ?>', // pattern-match sentence for "(open|close) this box" by mouse
     39        '<?php echo js_escape(__('use the arrow keys to move this box')); ?>', // sentence for "move this box" by keyboard
     40        '<?php echo js_escape(__(', or press the enter key to %toggle% it')); ?>',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
    4141        '%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
    4242        );
     
    5858        'yes',          // include open/close toggle buttons ['yes'|'no']
    5959        'closed',       // default state ['open'|'closed']
    60         'open',         // word for "open", as in "open this box"
    61         'close',        // word for "close", as in "close this box"
    62         'click-down and drag to move this box', // sentence for "move this box" by mouse
    63         'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
    64         'use the arrow keys to move this box', // sentence for "move this box" by keyboard
    65         ', or press the enter key to %toggle% it',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
     60        '<?php echo js_escape(__('open')); ?>',         // word for "open", as in "open this box"
     61        '<?php echo js_escape(__('close')); ?>',        // word for "close", as in "close this box"
     62        '<?php echo js_escape(__('click-down and drag to move this box')); ?>', // sentence for "move this box" by mouse
     63        '<?php echo js_escape(__('click to %toggle% this box')); ?>', // pattern-match sentence for "(open|close) this box" by mouse
     64        '<?php echo js_escape(__('use the arrow keys to move this box')); ?>', // sentence for "move this box" by keyboard
     65        '<?php echo js_escape(__(', or press the enter key to %toggle% it')); ?>',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
    6666        '%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
    6767        );
Note: See TracChangeset for help on using the changeset viewer.