Changeset 41026 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 07/11/2017 12:53:33 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r40937 r41026 488 488 */ 489 489 function get_shortcode_atts_regex() { 490 return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)| (\S+)(?:\s|$)/';490 return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/'; 491 491 } 492 492 … … 520 520 elseif (isset($m[7]) && strlen($m[7])) 521 521 $atts[] = stripcslashes($m[7]); 522 elseif (isset($m[8]) )522 elseif (isset($m[8]) && strlen($m[8])) 523 523 $atts[] = stripcslashes($m[8]); 524 elseif (isset($m[9])) 525 $atts[] = stripcslashes($m[9]); 524 526 } 525 527
Note: See TracChangeset
for help on using the changeset viewer.