Changeset 29479 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 08/13/2014 03:55:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r29431 r29479 228 228 229 229 foreach ( $textarr as &$curl ) { 230 // Only call _wptexturize_pushpop_element if $curl is a delim eter.230 // Only call _wptexturize_pushpop_element if $curl is a delimiter. 231 231 $first = $curl[0]; 232 232 if ( '<' === $first && '>' === substr( $curl, -1 ) ) { 233 // This is an HTML delim eter.233 // This is an HTML delimiter. 234 234 235 235 if ( '<!--' !== substr( $curl, 0, 4 ) ) { … … 238 238 239 239 } elseif ( '' === trim( $curl ) ) { 240 // This is a newline between delim eters. Performance improves when we check this.240 // This is a newline between delimiters. Performance improves when we check this. 241 241 242 242 continue; 243 243 244 244 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) { 245 // This is a shortcode delim eter.245 // This is a shortcode delimiter. 246 246 247 247 _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes ); 248 248 249 249 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) { 250 // This is an escaped shortcode delim eter.250 // This is an escaped shortcode delimiter. 251 251 252 252 // Do not texturize. … … 256 256 257 257 } elseif ( empty( $no_texturize_shortcodes_stack ) && empty( $no_texturize_tags_stack ) ) { 258 // This is neither a delim eter, nor is this content inside of no_texturize pairs. Do texturize.258 // This is neither a delimiter, nor is this content inside of no_texturize pairs. Do texturize. 259 259 260 260 $curl = str_replace( $static_characters, $static_replacements, $curl );
Note: See TracChangeset
for help on using the changeset viewer.