mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 13:41:24 +01:00
Use home_url() instead of get_bloginfo('url'). props Mamaduka, fixes #20371.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8789d023b2
commit
5e6d499889
@ -1208,7 +1208,7 @@ function wp_check_browser_version() {
|
||||
|
||||
$options = array(
|
||||
'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 );
|
||||
|
Loading…
Reference in New Issue
Block a user