diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 1c0d91fa75..5dfe5d04a6 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -2284,7 +2284,7 @@ final class WP_Customize_Manager { if ( ! is_wp_error( $validity ) ) { /** This filter is documented in wp-includes/class-wp-customize-setting.php */ $late_validity = apply_filters( "customize_validate_{$setting->id}", new WP_Error(), $unsanitized_value, $setting ); - if ( is_wp_error( $late_validity ) && ! empty( $late_validity->errors ) ) { + if ( ! empty( $late_validity->errors ) ) { $validity = $late_validity; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index b9801cfb64..92f2a3c722 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.9-alpha-43701'; +$wp_version = '4.9.9-alpha-43702'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.