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:
Sergey Biryukov 2017-12-18 01:10:36 +00:00
parent ab5222786a
commit fa5e8c13e7
1 changed files with 1 additions and 1 deletions

View File

@ -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 );