Changeset 36097 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 12/26/2015 04:45:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r35982 r36097 96 96 } 97 97 98 if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20 ]@', $tag ) ) {99 /* translators: %s: shortcode name*/100 $message = sprintf( __( 'Invalid shortcode name: % s. Do not use spaces or reserved characters: & / < > [ ]' ), $tag);98 if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20=]@', $tag ) ) { 99 /* translators: 1: shortcode name, 2: space separated list of reserved characters */ 100 $message = sprintf( __( 'Invalid shortcode name: %1$s. Do not use spaces or reserved characters: %2$s' ), $tag, '& / < > [ ] =' ); 101 101 _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); 102 102 return; … … 211 211 212 212 // Find all registered tag names in $content. 213 preg_match_all( '@\[([^<>&/\[\]\x00-\x20 ]++)@', $content, $matches );213 preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches ); 214 214 $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] ); 215 215 … … 579 579 580 580 // Find all registered tag names in $content. 581 preg_match_all( '@\[([^<>&/\[\]\x00-\x20 ]++)@', $content, $matches );581 preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches ); 582 582 $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] ); 583 583
Note: See TracChangeset
for help on using the changeset viewer.