Changeset 25520 for trunk/src/wp-includes/update.php
- Timestamp:
- 09/20/2013 07:12:45 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/update.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r25514 r25520 147 147 148 148 $plugins = get_plugins(); 149 $languages = wp_get_installed_language_data( 'plugins' ); 150 149 151 $active = get_option( 'active_plugins', array() ); 150 152 $current = get_site_transient( 'update_plugins' ); … … 201 203 $options = array( 202 204 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 203 'body' => array( 'plugins' => json_encode( $to_send ) ),205 'body' => array( 'plugins' => json_encode( $to_send ), 'languages' => json_encode( $languages ) ), 204 206 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 205 207 ); … … 244 246 245 247 $installed_themes = wp_get_themes(); 248 $languages = wp_get_installed_language_data( 'themes' ); 249 246 250 $last_update = get_site_transient( 'update_themes' ); 247 251 if ( ! is_object($last_update) ) … … 311 315 $options = array( 312 316 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 313 'body' => array( 'themes' => json_encode( $request ) ),317 'body' => array( 'themes' => json_encode( $request ), 'languages' => json_encode( $languages ) ), 314 318 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 315 319 );
Note: See TracChangeset
for help on using the changeset viewer.