mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
HTTP API: Fix a unit test failure found after [55210].
Follow-up to [55210]. See #54225. git-svn-id: https://develop.svn.wordpress.org/trunk@55211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8fbe21a37a
commit
5c840d93bb
@ -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 ) {
|
||||
|
||||
@ -271,8 +271,8 @@ class Tests_Functions_DoEnclose extends WP_UnitTestCase {
|
||||
),
|
||||
'ogg' => array(
|
||||
'headers' => array(
|
||||
'content-length' => 321,
|
||||
'content-type' => 'audio/ogg',
|
||||
'Content-Length' => 321,
|
||||
'Content-Type' => 'audio/ogg',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user