diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 77826f4005..0910842b8a 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -588,8 +588,6 @@ function rest_send_cors_headers( $value ) { header( 'Access-Control-Allow-Methods: OPTIONS, GET, POST, PUT, PATCH, DELETE' ); header( 'Access-Control-Allow-Credentials: true' ); header( 'Vary: Origin', false ); - } elseif ( ! headers_sent() && 'GET' === $_SERVER['REQUEST_METHOD'] && ! is_user_logged_in() ) { - header( 'Vary: Origin', false ); } elseif ( ! headers_sent() && 'GET' === $_SERVER['REQUEST_METHOD'] && ! is_user_logged_in() ) { header( 'Vary: Origin' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index c1d276b27d..d051bc3af3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2.4-alpha-46486'; +$wp_version = '5.2.4-alpha-46487'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.