diff --git src/wp-includes/shortcodes.php src/wp-includes/shortcodes.php
index 0b2b732..cc48e88 100644
|
|
|
function do_shortcode_tag( $m ) { |
| 289 | 289 | * The attributes list has the attribute name as the key and the value of the |
| 290 | 290 | * attribute as the value in the key/value pair. This allows for easier |
| 291 | 291 | * retrieval of the attributes, since all attributes have to be known. |
| | 292 | * Attributes not in key=value notation will be added to the list with a numerical key. |
| | 293 | * If no attributes are passed in the shortcode, an empty string will be returned. |
| 292 | 294 | * |
| 293 | 295 | * @since 2.5.0 |
| 294 | 296 | * |
| 295 | 297 | * @param string $text |
| 296 | | * @return array List of attributes and their value. |
| | 298 | * @return array|string Array of attributes and their values, empty string if no attributes were passed. |
| 297 | 299 | */ |
| 298 | 300 | function shortcode_parse_atts($text) { |
| 299 | 301 | $atts = array(); |
| … |
… |
function shortcode_parse_atts($text) { |
| 307 | 309 | $atts[strtolower($m[3])] = stripcslashes($m[4]); |
| 308 | 310 | elseif (!empty($m[5])) |
| 309 | 311 | $atts[strtolower($m[5])] = stripcslashes($m[6]); |
| 310 | | elseif (isset($m[7]) and strlen($m[7])) |
| | 312 | elseif (isset($m[7]) && strlen($m[7])) |
| 311 | 313 | $atts[] = stripcslashes($m[7]); |
| 312 | 314 | elseif (isset($m[8])) |
| 313 | 315 | $atts[] = stripcslashes($m[8]); |