Canonical: Add $x_redirect_by parameter to wp_safe_redirect().

See [42633] and [42408].

Fixes #42313.


git-svn-id: https://develop.svn.wordpress.org/trunk@42647 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2018-02-04 16:04:10 +00:00
parent 311531a964
commit d512973c84
2 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -183,7 +183,8 @@ class Tests_Pluggable extends WP_UnitTestCase {
'_wp_sanitize_utf8_in_redirect' => array( 'matches' ),
'wp_safe_redirect' => array(
'location',
'status' => 302,
'status' => 302,
'x_redirect_by' => 'WordPress',
),
'wp_validate_redirect' => array(
'location',