Changeset 28852 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/26/2014 05:14:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r28831 r28852 199 199 . '.+?--\s*>' // Find end of comment 200 200 . '|' 201 . ' .+?>'// Find end of element201 . '[^>]+>' // Find end of element 202 202 . ')' 203 203 . '|' … … 207 207 . '[^\[\]<>]' // Shortcodes do not contain other shortcodes. 208 208 . '|' 209 . '< .+?>' // HTML elements permitted. Prevents matching ] before >.209 . '<[^>]+>' // HTML elements permitted. Prevents matching ] before >. 210 210 . ')+' 211 211 . '\]' // Find end of shortcode. … … 225 225 } 226 226 227 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|< .+?>)+\]$/', $curl ) ) {227 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)+\]$/', $curl ) ) { 228 228 // This is a shortcode delimeter. 229 229 230 230 _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes ); 231 231 232 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|< .+?>)+\]\]?$/', $curl ) ) {232 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)+\]\]?$/', $curl ) ) { 233 233 // This is an escaped shortcode delimeter. 234 234
Note: See TracChangeset
for help on using the changeset viewer.