Make WordPress Core

Changeset 55212


Ignore:
Timestamp:
02/03/2023 02:39:31 PM (20 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r55211 r55212  
    507507        /*
    508508         * Send a request to the site, and check whether
    509          * the 'x-pingback' header is returned as expected.
     509         * the 'X-Pingback' header is returned as expected.
    510510         *
    511511         * Uses wp_remote_get() instead of wp_remote_head() because web servers
     
    513513         */
    514514        $response          = wp_remote_get( $test_url, array( 'timeout' => 5 ) );
    515         $x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' );
     515        $x_pingback_header = wp_remote_retrieve_header( $response, 'X-Pingback' );
    516516        $pretty_permalinks = $x_pingback_header && get_bloginfo( 'pingback_url' ) === $x_pingback_header;
    517517
Note: See TracChangeset for help on using the changeset viewer.