Changeset 836 for trunk/wp-includes/functions.php
- Timestamp:
- 02/05/2004 08:55:50 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r810 r836 74 74 $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "\t<p>$1</p>\n", $pee); // make paragraphs, including one at the end 75 75 $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace 76 $pee = preg_replace('!<p>\s*(</?(?:table|tr|td|th|div|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag 76 77 $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists 77 78 $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee); … … 147 148 } 148 149 150 function trailingslashit($string) { 151 if ( '/' != substr($string, -1)) { 152 $string .= '/'; 153 } 154 return $string; 155 } 149 156 150 157 function mysql2date($dateformatstring, $mysqlstring, $use_b2configmonthsdays = 1) {
Note: See TracChangeset
for help on using the changeset viewer.