Make WordPress Core


Ignore:
Timestamp:
02/01/2018 03:05:50 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Canonical: Add $x_redirect_by parameter to wp_redirect() that allows applications doing the redirect to identify themselves.

This complements the x_redirect_by filter added in [42408].

Props NathanAtmoz, johnbillion.
Fixes #42313.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable.php

    r42343 r42633  
    177177            'wp_redirect'                     => array(
    178178                'location',
    179                 'status' => 302,
     179                'status'        => 302,
     180                'x_redirect_by' => 'WordPress',
    180181            ),
    181182            'wp_sanitize_redirect'            => array( 'location' ),
Note: See TracChangeset for help on using the changeset viewer.