Make WordPress Core

Ticket #34030: 34030.update.patch

File 34030.update.patch, 1.1 KB (added by ocean90, 11 years ago)
  • src/wp-admin/update.php

     
    9898                include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api..
    9999
    100100                check_admin_referer('install-plugin_' . $plugin);
    101                 $api = plugins_api('plugin_information', array('slug' => $plugin, 'fields' => array('sections' => false) ) ); //Save on a bit of bandwidth.
     101                $api = plugins_api('plugin_information', array(
     102                        'slug' => $plugin,
     103                        'fields' => array(
     104                                'short_description' => false,
     105                                'sections' => false,
     106                                'requires' => false,
     107                                'rating' => false,
     108                                'ratings' => false,
     109                                'downloaded' => false,
     110                                'last_updated' => false,
     111                                'added' => false,
     112                                'tags' => false,
     113                                'compatibility' => false,
     114                                'homepage' => false,
     115                                'donate_link' => false,
     116                        ),
     117                ) );
    102118
    103                 if ( is_wp_error($api) )
    104                         wp_die($api);
     119                if ( is_wp_error( $api ) ) {
     120                        wp_die( $api );
     121                }
    105122
    106123                $title = __('Plugin Install');
    107124                $parent_file = 'plugins.php';