Ticket #6444: 6444.001.diff
| File 6444.001.diff, 1.2 KB (added by , 18 years ago) |
|---|
-
wp-includes/shortcodes.php
129 129 return $out; 130 130 } 131 131 132 add_filter( 'the_content', 'do_shortcode', 9 );132 add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop() 133 133 134 134 ?> -
wp-includes/formatting.php
5 5 $next = true; 6 6 $output = ''; 7 7 $curl = ''; 8 $textarr = preg_split('/(<.*> )/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);8 $textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE); 9 9 $stop = count($textarr); 10 10 11 11 // if a plugin has provided an autocorrect array, use it … … 26 26 for ( $i = 0; $i < $stop; $i++ ) { 27 27 $curl = $textarr[$i]; 28 28 29 if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag29 if (isset($curl{0}) && '<' != $curl{0} && '[' != $curl{0} && $next) { // If it's not a tag 30 30 // static strings 31 31 $curl = str_replace($static_characters, $static_replacements, $curl); 32 32 // regular expressions