Canonical: After [42408], remove sprintf()
call for consistency with Location
header.
See #42313. git-svn-id: https://develop.svn.wordpress.org/trunk@42409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab5222786a
commit
fa5e8c13e7
@ -1239,7 +1239,7 @@ if ( ! function_exists( 'wp_redirect' ) ) :
|
||||
*/
|
||||
$x_redirect_by = apply_filters( 'x_redirect_by', 'WordPress', $status, $location );
|
||||
if ( is_string( $x_redirect_by ) ) {
|
||||
header( sprintf( "X-Redirect-By: %s", $x_redirect_by ) );
|
||||
header( "X-Redirect-By: $x_redirect_by" );
|
||||
}
|
||||
|
||||
header( "Location: $location", true, $status );
|
||||
|
Loading…
Reference in New Issue
Block a user