Changeset 45574
- Timestamp:
- 06/28/2019 07:15:31 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r45573 r45574 500 500 // Add a double line break below block-level closing tags. 501 501 $pee = preg_replace( '!(</' . $allblocks . '>)!', "$1\n\n", $pee ); 502 503 // Add a double line break after hr tags, which are self closing. 504 $pee = preg_replace( '!(<hr\s*?/?>)!', "$1\n\n", $pee ); 502 505 503 506 // Standardize newline characters to "\n". -
trunk/tests/phpunit/tests/formatting/Autop.php
r42636 r45574 313 313 'h5', 314 314 'h6', 315 'hr',316 315 'fieldset', 317 316 'legend', … … 559 558 } 560 559 560 /** 561 * @ticket 14674 562 */ 563 function test_the_hr_is_not_peed() { 564 $content = 'paragraph1<hr>paragraph2'; 565 $expected = "<p>paragraph1</p>\n<hr>\n<p>paragraph2</p>"; 566 567 $this->assertEquals( $expected, trim( wpautop( $content ) ) ); 568 } 561 569 }
Note: See TracChangeset
for help on using the changeset viewer.