Make WordPress Core


Ignore:
Timestamp:
08/12/2010 11:21:05 PM (15 years ago)
Author:
scribu
Message:

Introduce WP_List_Table::check_permissions() and WP_List_Table::prepare_items(). Fixes #14596; See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-install.php

    r15491 r15496  
    1010require_once('./admin.php');
    1111
    12 if ( ! current_user_can('install_plugins') )
    13     wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
    14 
    1512require_once( './includes/default-list-tables.php' );
    1613
    1714$table = new WP_Plugin_Install_Table;
     15$table->check_permissions();
     16$table->prepare_items();
    1817
    1918$title = __('Install Plugins');
Note: See TracChangeset for help on using the changeset viewer.