Ticket #33466: 33466.2.patch
File 33466.2.patch, 670 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/formatting.php
572 572 // Optionally insert line breaks. 573 573 if ( $br ) { 574 574 // Replace newlines that shouldn't be touched with a placeholder. 575 $pee = preg_replace_callback('/<(script|style ).*?<\/\\1>/s', '_autop_newline_preservation_helper', $pee);575 $pee = preg_replace_callback('/<(script|style|textarea).*?<\/\\1>/s', '_autop_newline_preservation_helper', $pee); 576 576 577 577 // Normalize <br> 578 578 $pee = str_replace( array( '<br>', '<br/>' ), '<br />', $pee );