Canonical: After [42408], remove `sprintf()` call for consistency with `Location` header.

See #42313.
Built from https://develop.svn.wordpress.org/trunk@42409


git-svn-id: http://core.svn.wordpress.org/trunk@42238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-12-18 01:11:47 +00:00
parent 0bc86bc220
commit df07690883
2 changed files with 2 additions and 2 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 );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42408';
$wp_version = '5.0-alpha-42409';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.