WordPress.org

Make WordPress Core

Changeset 46545


Ignore:
Timestamp:
10/15/2019 03:53:26 PM (5 weeks ago)
Author:
whyisjake
Message:

REST API: Allow for multiple Vary: Origin headers in GET responses.

Simple fix, we pass false as the second parameter to the header function.

This is something that we added downstream of the 5.2.4 release, but we missed in 5.2/trunk.

Fixes #48309, see also [46544].
Props xknown, whyisjake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2/src/wp-includes/rest-api.php

    r46487 r46545  
    590590        header( 'Vary: Origin', false );
    591591    } elseif ( ! headers_sent() && 'GET' === $_SERVER['REQUEST_METHOD'] && ! is_user_logged_in() ) {
    592         header( 'Vary: Origin' );
     592        header( 'Vary: Origin', false );
    593593    }
    594594
Note: See TracChangeset for help on using the changeset viewer.