Changeset 29226 for trunk/src/wp-includes/update.php
- Timestamp:
- 07/18/2014 08:48:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r28823 r29226 278 278 'translations' => json_encode( $translations ), 279 279 'locale' => json_encode( $locales ), 280 'all' => json_encode( true ), 280 281 ), 281 282 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) … … 304 305 } 305 306 unset( $plugin ); 307 foreach ( $response['no_update'] as &$plugin ) { 308 $plugin = (object) $plugin; 309 } 310 unset( $plugin ); 306 311 307 312 if ( is_array( $response ) ) { 308 313 $new_option->response = $response['plugins']; 309 314 $new_option->translations = $response['translations']; 315 // TODO: Perhaps better to store no_update in a separate transient with an expiry? 316 $new_option->no_update = $response['no_update']; 310 317 } else { 311 318 $new_option->response = array(); 312 319 $new_option->translations = array(); 320 $new_option->no_update = array(); 313 321 } 314 322
Note: See TracChangeset
for help on using the changeset viewer.