WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/14/2013 11:32:47 PM (6 years ago)
Author:
nacin
Message:

Automatic updates: Include error data in the follow-up API request.

props dd32.
see #22704.

File:
1 edited

Legend:

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

    r25751 r25781  
    8787    );
    8888
     89    $post_body = array(
     90        'translations' => json_encode( $translations ),
     91    );
     92
    8993    if ( $extra_stats )
    90         $query = array_merge( $query, $extra_stats );
     94        $post_body = array_merge( $post_body, $extra_stats );
    9195
    9296    $url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' );
     
    101105            'wp_blog' => home_url( '/' )
    102106        ),
    103         'body' => array(
    104             'translations' => json_encode( $translations ),
    105         ),
     107        'body' => $post_body,
    106108    );
    107109
Note: See TracChangeset for help on using the changeset viewer.