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:
Andrew Ozz
2014-07-28 19:54:50 +00:00
parent 5fa36977a0
commit 01051b4e2f
2 changed files with 4 additions and 4 deletions

View File

@@ -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 ) {