WordPress.org

Make WordPress Core

Ticket #20371: 20371.diff

File 20371.diff, 550 bytes (added by Mamaduka, 2 years ago)
  • includes/dashboard.php

     
    12081208 
    12091209                $options = array( 
    12101210                        'body'                  => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ), 
    1211                         'user-agent'    => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 
     1211                        'user-agent'    => 'WordPress/' . $wp_version . '; ' . home_url() 
    12121212                ); 
    12131213 
    12141214                $response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.0/', $options );