Make WordPress Core

Changeset 55211


Ignore:
Timestamp:
02/03/2023 01:51:11 PM (2 years ago)
Author:
audrasjb
Message:

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

Follow-up to [55210].

See #54225.

Location:
trunk
Files:
2 edited

Legend:

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

    r55210 r55211  
    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
  • trunk/tests/phpunit/tests/functions/doEnclose.php

    r55210 r55211  
    272272            'ogg' => array(
    273273                'headers' => array(
    274                     'content-length' => 321,
    275                     'content-type'   => 'audio/ogg',
     274                    'Content-Length' => 321,
     275                    'Content-Type'   => 'audio/ogg',
    276276                ),
    277277            ),
Note: See TracChangeset for help on using the changeset viewer.