Changeset 45587
- Timestamp:
- 07/02/2019 03:28:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r45586 r45587 583 583 584 584 // If an opening <p> tag is inside a block element tag, without a following closing <p> tag, remove it. 585 $pee = preg_replace( '#<p>( ((?!</p>).)*</' . $allblocksexceptp . '>)#s', '$1', $pee );585 $pee = preg_replace( '#<p>([^<]*(((?!</p>).)*)</' . $allblocksexceptp . '>)#s', '$1', $pee ); 586 586 587 587 // Optionally insert line breaks.
Note: See TracChangeset
for help on using the changeset viewer.