Changeset 21888 for trunk/wp-includes/formatting.php
- Timestamp:
- 09/18/2012 05:32:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r21859 r21888 221 221 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 222 222 // Space things out a little 223 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset| legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';223 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|samp|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; 224 224 $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 225 225 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
Note: See TracChangeset
for help on using the changeset viewer.