Changeset 29431 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 08/07/2014 07:10:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r29316 r29431 220 220 . '|' 221 221 . '<[^>]+>' // HTML elements permitted. Prevents matching ] before >. 222 . ')+ '222 . ')++' 223 223 . '\]' // Find end of shortcode. 224 224 . '\]?' // Shortcodes may end with ]] … … 242 242 continue; 243 243 244 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)+ \]$/', $curl ) ) {244 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) { 245 245 // This is a shortcode delimeter. 246 246 247 247 _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes ); 248 248 249 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)+ \]\]?$/', $curl ) ) {249 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) { 250 250 // This is an escaped shortcode delimeter. 251 251
Note: See TracChangeset
for help on using the changeset viewer.