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:
parent
0bc86bc220
commit
df07690883
|
@ -1239,7 +1239,7 @@ if ( ! function_exists( 'wp_redirect' ) ) :
|
||||||
*/
|
*/
|
||||||
$x_redirect_by = apply_filters( 'x_redirect_by', 'WordPress', $status, $location );
|
$x_redirect_by = apply_filters( 'x_redirect_by', 'WordPress', $status, $location );
|
||||||
if ( is_string( $x_redirect_by ) ) {
|
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 );
|
header( "Location: $location", true, $status );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue