Changeset 25219
- Timestamp:
- 09/03/2013 03:21:59 AM (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
wp-admin/update-core.php (modified) (1 diff)
-
wp-includes/update.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r25099 r25219 25 25 global $wp_local_package, $wpdb; 26 26 static $first_pass = true; 27 28 // Don't show auto-updates in the updates page 29 if ( isset( $update->response ) && 'autoupdate' == $update->response ) 30 return; 27 31 28 32 $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ? -
trunk/src/wp-includes/update.php
r23265 r25219 76 76 ); 77 77 78 $url = 'http://api.wordpress.org/core/version-check/1.6/?' . http_build_query( $query, null, '&' ); 78 $url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' ); 79 80 if ( wp_http_supports( 'ssl' ) ) 81 $url = set_url_scheme( $url, 'https' ); 79 82 80 83 $options = array( … … 93 96 94 97 $body = trim( wp_remote_retrieve_body( $response ) ); 95 $body = maybe_unserialize( $body);98 $body = json_decode( $body, true ); 96 99 97 100 if ( ! is_array( $body ) || ! isset( $body['offers'] ) ) … … 111 114 } 112 115 $offer = (object) array_intersect_key( $offer, array_fill_keys( array( 'response', 'download', 'locale', 113 'packages', 'current', ' php_version', 'mysql_version', 'new_bundled', 'partial_version' ), '' ) );116 'packages', 'current', 'version', 'php_version', 'mysql_version', 'new_bundled', 'partial_version' ), '' ) ); 114 117 } 115 118
Note: See TracChangeset
for help on using the changeset viewer.