WordPress.org

Make WordPress Core

Ticket #19775: 19775.2.diff

File 19775.2.diff, 658 bytes (added by DrewAPicture, 2 years ago)

Better spacing and $args array

  • wp-admin/includes/plugin-install.php

     
    239239function install_plugin_information() { 
    240240        global $tab; 
    241241 
    242         $api = plugins_api('plugin_information', array('slug' => stripslashes( $_REQUEST['plugin'] ) )); 
     242        $args = array( 
     243                'slug' => stripslashes( $_REQUEST['plugin'] ), 
     244                'fields' => array( 
     245                        'compatibility' => false, 
     246                        'tags' => false, 
     247                ) 
     248        ); 
     249        $api = plugins_api( 'plugin_information', $args ); 
    243250 
    244251        if ( is_wp_error($api) ) 
    245252                wp_die($api);