Make WordPress Core

Ticket #34191: 34191.patch

File 34191.patch, 753 bytes (added by miqrogroove, 11 years ago)
  • src/wp-includes/js/shortcode.js

     
    135135                        // 6. an unquoted value.
    136136                        // 7. A numeric attribute in double quotes.
    137137                        // 8. An unquoted numeric attribute.
    138                         pattern = /(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/g;
     138                        pattern = /([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/g;
    139139
    140140                        // Map zero-width spaces to actual spaces.
    141141                        text = text.replace( /[\u00a0\u200b]/g, ' ' );