mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55212 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5c840d93bb
commit
e83ea74dce
@ -506,13 +506,13 @@ function wp_install_maybe_enable_pretty_permalinks() {
|
||||
|
||||
/*
|
||||
* Send a request to the site, and check whether
|
||||
* the 'x-pingback' header is returned as expected.
|
||||
* the 'X-Pingback' header is returned as expected.
|
||||
*
|
||||
* Uses wp_remote_get() instead of wp_remote_head() because web servers
|
||||
* 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 ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user