mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user