Changeset 55272 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 02/07/2023 04:16:47 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r55245 r55272 481 481 $text = preg_replace( '|<br\s*/?>\s*<br\s*/?>|', "\n\n", $text ); 482 482 483 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|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)';483 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; 484 484 485 485 // Add a double line break above block-level opening tags. … … 569 569 if ( $br ) { 570 570 // Replace newlines that shouldn't be touched with a placeholder. 571 $text = preg_replace_callback( '/<(script|style|svg ).*?<\/\\1>/s', '_autop_newline_preservation_helper', $text );571 $text = preg_replace_callback( '/<(script|style|svg|math).*?<\/\\1>/s', '_autop_newline_preservation_helper', $text ); 572 572 573 573 // Normalize <br>
Note: See TracChangeset
for help on using the changeset viewer.