Changeset 7581 for trunk/wp-includes/formatting.php
- Timestamp:
- 03/31/2008 07:56:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r7520 r7581 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);
Note: See TracChangeset
for help on using the changeset viewer.