diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 225ad31f21..16d3a0f5d4 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3e5a7c1b78..b06bd8915f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.