Changeset 7594
- Timestamp:
- 04/03/08 03:15:06 (3 months ago)
- Files:
-
- branches/2.5/wp-includes/formatting.php (modified) (2 diffs)
- branches/2.5/wp-includes/shortcodes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.5/wp-includes/formatting.php
r7593 r7594 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 … … 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); branches/2.5/wp-includes/shortcodes.php
r7561 r7594 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 ?>
