From e83ea74dce59ab03dc174f2a347451e5668730b7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 3 Feb 2023 14:39:31 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@55212 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 63580cceb0..5bfc154f25 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/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 ) {