mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00:00
Formatting: make the removal of white space around <option> greedy, see #28217.
git-svn-id: https://develop.svn.wordpress.org/trunk@29316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -394,8 +394,8 @@ function wpautop($pee, $br = true) {
|
||||
|
||||
if ( strpos( $pee, '<option' ) !== false ) {
|
||||
// no P/BR around option
|
||||
$pee = preg_replace( '|\s<option|', '<option', $pee );
|
||||
$pee = preg_replace( '|</option>\s|', '</option>', $pee );
|
||||
$pee = preg_replace( '|\s*<option|', '<option', $pee );
|
||||
$pee = preg_replace( '|</option>\s*|', '</option>', $pee );
|
||||
}
|
||||
|
||||
if ( strpos( $pee, '</object>' ) !== false ) {
|
||||
|
||||
Reference in New Issue
Block a user