Make WordPress Core


Ignore:
Timestamp:
09/14/2013 07:30:44 PM (12 years ago)
Author:
nacin
Message:

Move to JSON for three api.wordpress.org endpoints. see #25311.

File:
1 edited

Legend:

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

    r25298 r25441  
    12271227        );
    12281228
    1229         $response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.0/', $options );
     1229        $response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.1/', $options );
    12301230
    12311231        if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
     
    12431243         *  'img_src_ssl' - string - An image (over SSL) representing the browser
    12441244         */
    1245         $response = maybe_unserialize( wp_remote_retrieve_body( $response ) );
     1245        $response = json_decode( wp_remote_retrieve_body( $response ), true );
    12461246
    12471247        if ( ! is_array( $response ) )
Note: See TracChangeset for help on using the changeset viewer.