WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/27/2017 07:59:14 AM (3 years ago)
Author:
dd32
Message:

Standardise on performing api.WordPress.org requests over SSL when possible, falling back to non-SSL when appropriate.
This also standardises the User-Agent used when communicating with WordPress.org, allowing for more consistent version detection.

Fixes #42004.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/update.php

    r40575 r41605  
    302302            'all'          => wp_json_encode( true ),
    303303        ),
    304         'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
     304        'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' )
    305305    );
    306306
     
    480480            'locale'       => wp_json_encode( $locales ),
    481481        ),
    482         'user-agent'    => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
     482        'user-agent'    => 'WordPress/' . $wp_version . '; ' . home_url( '/' )
    483483    );
    484484
Note: See TracChangeset for help on using the changeset viewer.