mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Use home_url() instead of get_bloginfo('url'). props Mamaduka, fixes #20371.
git-svn-id: https://develop.svn.wordpress.org/trunk@20439 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5ac059e12c
commit
a6b212b230
@ -1208,7 +1208,7 @@ function wp_check_browser_version() {
|
|||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),
|
'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),
|
||||||
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
|
'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url()
|
||||||
);
|
);
|
||||||
|
|
||||||
$response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.0/', $options );
|
$response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.0/', $options );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user