Ticket #7045: 7045.diff
| File 7045.diff, 731 bytes (added by kovshenin, 7 months ago) |
|---|
-
wp-includes/shortcodes.php
254 254 */ 255 255 function shortcode_parse_atts($text) { 256 256 $atts = array(); 257 $pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)| "([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/';257 $pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|=?"([^"]*)"(?:\s|$)|=?(\S+)(?:\s|$)/'; 258 258 $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text); 259 259 if ( preg_match_all($pattern, $text, $match, PREG_SET_ORDER) ) { 260 260 foreach ($match as $m) {
