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