Make WordPress Core


Ignore:
Timestamp:
01/06/2016 07:52:53 AM (9 years ago)
Author:
dd32
Message:

Updates: Don't perform an API call to WordPress.org for every plugin update displayed. The API has been updated to return this information with the update response.

See #35301

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/update.php

    r36180 r36182  
    311311    foreach ( $response['plugins'] as &$plugin ) {
    312312        $plugin = (object) $plugin;
    313     }
    314     unset( $plugin );
     313        if ( isset( $plugin->compatibility ) ) {
     314            $plugin->compatibility = (object) $plugin->compatibility;
     315            foreach ( $plugin->compatibility as &$data ) {
     316                $data = (object) $data;
     317            }
     318        }
     319    }
     320    unset( $plugin, $data );
    315321    foreach ( $response['no_update'] as &$plugin ) {
    316322        $plugin = (object) $plugin;
Note: See TracChangeset for help on using the changeset viewer.