Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (21 months ago)
Author:
audrasjb
Message:

HTTP API: Fix request header inconsistencies.

This changeset improves the consistency in capitalization of fetching and outputting of request headers. It also updates occurrences found in some docblocks.

Props johnjamesjacoby, costdev, audrasjb, petitphp, mhkuu, SergeyBiryukov.
Fixes #54225.

File:
1 edited

Legend:

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

    r54891 r55210  
    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.