Changeset 16340 for trunk/wp-includes/formatting.php
- Timestamp:
- 11/13/2010 09:53:55 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/formatting.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r16313 r16340 93 93 $curl = $textarr[$i]; 94 94 95 if ( !empty($curl) && '<' != $curl {0} && '[' != $curl{0}95 if ( !empty($curl) && '<' != $curl[0] && '[' != $curl[0] 96 96 && empty($no_texturize_shortcodes_stack) && empty($no_texturize_tags_stack)) { 97 97 // This is not a tag, nor is the texturization disabled … … 114 114 * tag opening 115 115 */ 116 if ('<' == $curl {0})116 if ('<' == $curl[0]) 117 117 _wptexturize_pushpop_element($curl, $no_texturize_tags_stack, $no_texturize_tags, '<', '>'); 118 elseif ('[' == $curl {0})118 elseif ('[' == $curl[0]) 119 119 _wptexturize_pushpop_element($curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes, '[', ']'); 120 120 } … … 1499 1499 for ($i = 0; $i < $stop; $i++) { 1500 1500 $content = $textarr[$i]; 1501 if ((strlen($content) > 0) && ('<' != $content {0})) { // If it's not a tag1501 if ((strlen($content) > 0) && ('<' != $content[0])) { // If it's not a tag 1502 1502 $content = preg_replace_callback($wp_smiliessearch, 'translate_smiley', $content); 1503 1503 } … … 2633 2633 2634 2634 // Fragment has a specifier 2635 if ( $pattern {$start}== '%' ) {2635 if ( $pattern[$start] == '%' ) { 2636 2636 // Find numbered arguments or take the next one in order 2637 2637 if ( preg_match('/^%(\d+)\$/', $fragment, $matches) ) {
Note: See TracChangeset
for help on using the changeset viewer.