diff --git src/wp-includes/shortcodes.php src/wp-includes/shortcodes.php
index 47cb57a..2f69db3 100644
|
|
|
function do_shortcode_tag( $m ) { |
| 305 | 305 | */ |
| 306 | 306 | function shortcode_parse_atts($text) { |
| 307 | 307 | $atts = array(); |
| 308 | | $pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/'; |
| | 308 | $pattern = '/(\w+(?:\-\w+)*)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/'; |
| 309 | 309 | $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text); |
| 310 | 310 | if ( preg_match_all($pattern, $text, $match, PREG_SET_ORDER) ) { |
| 311 | 311 | foreach ($match as $m) { |