Bootstrap/Load: Adjust the logic in `add_magic_quotes()` for better readability.

Follow-up to [48205].

See #48605.
Built from https://develop.svn.wordpress.org/trunk@48440


git-svn-id: http://core.svn.wordpress.org/trunk@48209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-11 22:44:05 +00:00
parent b640c0692e
commit f2a7a5e154
2 changed files with 4 additions and 4 deletions

View File

@ -1230,10 +1230,10 @@ function add_magic_quotes( $array ) {
foreach ( (array) $array as $k => $v ) {
if ( is_array( $v ) ) {
$array[ $k ] = add_magic_quotes( $v );
} elseif ( ! is_string( $v ) ) {
continue;
} else {
} elseif ( is_string( $v ) ) {
$array[ $k ] = addslashes( $v );
} else {
continue;
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta1-48439';
$wp_version = '5.5-beta1-48440';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.