mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@42633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -176,7 +176,8 @@ class Tests_Pluggable extends WP_UnitTestCase {
|
||||
),
|
||||
'wp_redirect' => array(
|
||||
'location',
|
||||
'status' => 302,
|
||||
'status' => 302,
|
||||
'x_redirect_by' => 'WordPress',
|
||||
),
|
||||
'wp_sanitize_redirect' => array( 'location' ),
|
||||
'_wp_sanitize_utf8_in_redirect' => array( 'matches' ),
|
||||
|
||||
Reference in New Issue
Block a user