From df076908839b927f0ea79fab21a6c5f89a334f1d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 18 Dec 2017 01:11:47 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index c41fd2458b..9af88a6ea2 100644 --- a/wp-includes/pluggable.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8a8ddbbe4d..68cd53ee65 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.