From fa5e8c13e74cd06ce0d0ba37d26e2f8915664737 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 18 Dec 2017 01:10:36 +0000 Subject: [PATCH] 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 --- src/wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index c41fd2458b..9af88a6ea2 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -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 );