Ticket #14674: 14674.4.diff
File 14674.4.diff, 910 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/formatting.php
474 474 // Add a double line break below block-level closing tags. 475 475 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 476 476 477 // hr's are block-level and self-closing 478 $pee = preg_replace('!(<hr\s?/?>)!', "\n\n$1\n\n", $pee ); 479 477 480 // Standardize newline characters to "\n". 478 481 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); 479 482 -
tests/phpunit/tests/formatting/Autop.php
312 312 'h4', 313 313 'h5', 314 314 'h6', 315 'hr',316 315 'fieldset', 317 316 'legend', 318 317 'section',