Changeset 30055 for trunk/src/wp-includes/update.php
- Timestamp:
- 10/28/2014 06:34:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r29226 r30055 95 95 96 96 $post_body = array( 97 'translations' => json_encode( $translations ),97 'translations' => wp_json_encode( $translations ), 98 98 ); 99 99 … … 275 275 'timeout' => $timeout, 276 276 'body' => array( 277 'plugins' => json_encode( $to_send ),278 'translations' => json_encode( $translations ),279 'locale' => json_encode( $locales ),280 'all' => json_encode( true ),277 'plugins' => wp_json_encode( $to_send ), 278 'translations' => wp_json_encode( $translations ), 279 'locale' => wp_json_encode( $locales ), 280 'all' => wp_json_encode( true ), 281 281 ), 282 282 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) … … 284 284 285 285 if ( $extra_stats ) { 286 $options['body']['update_stats'] = json_encode( $extra_stats );286 $options['body']['update_stats'] = wp_json_encode( $extra_stats ); 287 287 } 288 288 … … 438 438 'timeout' => $timeout, 439 439 'body' => array( 440 'themes' => json_encode( $request ),441 'translations' => json_encode( $translations ),442 'locale' => json_encode( $locales ),440 'themes' => wp_json_encode( $request ), 441 'translations' => wp_json_encode( $translations ), 442 'locale' => wp_json_encode( $locales ), 443 443 ), 444 444 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) … … 446 446 447 447 if ( $extra_stats ) { 448 $options['body']['update_stats'] = json_encode( $extra_stats );448 $options['body']['update_stats'] = wp_json_encode( $extra_stats ); 449 449 } 450 450
Note: See TracChangeset
for help on using the changeset viewer.