Ticket #6562: 6562.patch
| File 6562.patch, 566 bytes (added by , 18 years ago) |
|---|
-
shortcodes.php
98 98 function shortcode_parse_atts($text) { 99 99 $atts = array(); 100 100 $pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/'; 101 $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text); 101 102 if ( preg_match_all($pattern, $text, $match, PREG_SET_ORDER) ) { 102 103 foreach ($match as $m) { 103 104 if (!empty($m[1]))