Changeset 25442
- Timestamp:
- 09/14/2013 07:57:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r25421 r25442 207 207 ); 208 208 209 $url = 'http://api.wordpress.org/plugins/update-check/1. 0/';209 $url = 'http://api.wordpress.org/plugins/update-check/1.1/'; 210 210 if ( wp_http_supports( array( 'ssl' ) ) ) 211 211 $url = set_url_scheme( $url, 'https' ); … … 216 216 return false; 217 217 218 $response = maybe_unserialize( wp_remote_retrieve_body( $raw_response ) );219 220 if ( is_ array( $response ) )221 $new_option->response = $response;218 $response = json_decode( wp_remote_retrieve_body( $raw_response ) ); 219 220 if ( is_object( $response ) ) 221 $new_option->response = (array) $response; 222 222 else 223 223 $new_option->response = array(); … … 318 318 ); 319 319 320 $url = 'http://api.wordpress.org/themes/update-check/1. 0/';320 $url = 'http://api.wordpress.org/themes/update-check/1.1/'; 321 321 if ( wp_http_supports( array( 'ssl' ) ) ) 322 322 $url = set_url_scheme( $url, 'https' ); … … 331 331 $new_update->checked = $checked; 332 332 333 $response = maybe_unserialize( wp_remote_retrieve_body( $raw_response ));333 $response = json_decode( wp_remote_retrieve_body( $raw_response ), true ); 334 334 if ( is_array( $response ) ) 335 335 $new_update->response = $response;
Note: See TracChangeset
for help on using the changeset viewer.