HTTP API: Fix a unit test failure found after [55210].

Follow-up to [55210].

See #54225.

Built from https://develop.svn.wordpress.org/trunk@55211


git-svn-id: http://core.svn.wordpress.org/trunk@54744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-02-03 13:53:18 +00:00
parent 28358ab213
commit 897eefe2e3
2 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@ function wp_install_maybe_enable_pretty_permalinks() {
* 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 ) {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-alpha-55210';
$wp_version = '6.2-alpha-55211';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.