Changeset 41605 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 09/27/2017 07:59:14 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r41200 r41605 1510 1510 1511 1511 if ( false === ($response = get_site_transient('browser_' . $key) ) ) { 1512 // include an unmodified $wp_version 1513 include( ABSPATH . WPINC . '/version.php' ); 1514 1515 $url = 'http://api.wordpress.org/core/browse-happy/1.1/'; 1512 1516 $options = array( 1513 'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),1514 'user-agent' => 'WordPress/' . get_bloginfo( 'version' ) . '; ' . home_url()1517 'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ), 1518 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ) 1515 1519 ); 1516 1520 1517 $response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.1/', $options ); 1521 if ( wp_http_supports( array( 'ssl' ) ) ) { 1522 $url = set_url_scheme( $url, 'https' ); 1523 } 1524 1525 $response = wp_remote_post( $url, $options ); 1518 1526 1519 1527 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
Note: See TracChangeset
for help on using the changeset viewer.