Make WordPress Core

Ticket #22205: update.php.patch

File update.php.patch, 648 bytes (added by logikal16, 12 years ago)
  • wp-includes/update.php

     
    144144                require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    145145
    146146        $plugins = get_plugins();
     147
     148        // Pass only essential information to the API (save bandwidth)
     149        foreach ( $plugins as $plugin_path => $plugin_data ) {
     150                $plugins[ $plugin_path ] = array( 'Version' => $plugin_data[ 'Version' ] );
     151        }
     152
    147153        $active  = get_option( 'active_plugins', array() );
    148154        $current = get_site_transient( 'update_plugins' );
    149155        if ( ! is_object($current) )