Make WordPress Core

Ticket #1306: quicktags.js-unrestrict.patch

File quicktags.js-unrestrict.patch, 502 bytes (added by h3h, 20 years ago)
  • wp-admin/quicktags.js

     
    251251       if (word == '') {
    252252               word = prompt('Enter a word to look up:', '');
    253253       }
    254        if (word !== null && /^\w[\w ]*$/.test(word)) {
     254       if (word !== null && /^\w.*$/.test(word)) {
    255255               window.open('http://www.answers.com/' + escape(word));
    256256       }
    257257}