Changeset 25652 for trunk/src/wp-includes/update.php
- Timestamp:
- 09/30/2013 07:46:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r25649 r25652 29 29 30 30 $current = get_site_transient( 'update_core' ); 31 $translations = wp_get_installed_translations( 'core' ); 32 31 33 if ( ! is_object($current) ) { 32 34 $current = new stdClass; … … 86 88 'wp_install' => $wp_install, 87 89 'wp_blog' => home_url( '/' ) 88 ) 90 ), 91 'body' => array( 92 'translations' => json_encode( $translations ), 93 ), 89 94 ); 90 95 91 $response = wp_remote_ get($url, $options);96 $response = wp_remote_post( $url, $options ); 92 97 93 98 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) … … 120 125 $updates->last_checked = time(); 121 126 $updates->version_checked = $wp_version; 127 128 if ( isset( $body['translations'] ) ) 129 $updates->translations = $body['translations']; 130 122 131 set_site_transient( 'update_core', $updates); 123 132 }
Note: See TracChangeset
for help on using the changeset viewer.