From e235883c4d99ad5f2bf194e1feb35208b053b472 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 3 Feb 2023 14:41:26 +0000 Subject: [PATCH] HTTP API: Restore one instance of the `X-Pingback` header capitalization. The revert in the previous commit appears to be accidental. Follow-up to [55210], [55211]. See #54225. Built from https://develop.svn.wordpress.org/trunk@55212 git-svn-id: http://core.svn.wordpress.org/trunk@54745 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 63580cceb0..5bfc154f25 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -506,13 +506,13 @@ function wp_install_maybe_enable_pretty_permalinks() { /* * Send a request to the site, and check whether - * the 'x-pingback' header is returned as expected. + * the 'X-Pingback' header is returned as expected. * * Uses wp_remote_get() instead of wp_remote_head() because web servers * can block head requests. */ $response = wp_remote_get( $test_url, array( 'timeout' => 5 ) ); - $x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' ); + $x_pingback_header = wp_remote_retrieve_header( $response, 'X-Pingback' ); $pretty_permalinks = $x_pingback_header && get_bloginfo( 'pingback_url' ) === $x_pingback_header; if ( $pretty_permalinks ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 8f59c4bef3..209cbe0665 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55211'; +$wp_version = '6.2-alpha-55212'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.