Changeset 55212
- Timestamp:
- 02/03/2023 02:39:31 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r55211 r55212 507 507 /* 508 508 * 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. 510 510 * 511 511 * Uses wp_remote_get() instead of wp_remote_head() because web servers … … 513 513 */ 514 514 $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' ); 516 516 $pretty_permalinks = $x_pingback_header && get_bloginfo( 'pingback_url' ) === $x_pingback_header; 517 517
Note: See TracChangeset
for help on using the changeset viewer.