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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu
2010-08-12 23:21:05 +00:00
parent 17cc67eb45
commit c6056827ed
16 changed files with 271 additions and 170 deletions

View File

@@ -9,12 +9,11 @@
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( ! current_user_can('install_themes') )
wp_die(__('You do not have sufficient permissions to install themes on this site.'));
require_once( './includes/default-list-tables.php' );
$table = new WP_Theme_Install_Table;
$table->check_permissions();
$table->prepare_items();
$title = __('Install Themes');
$parent_file = 'themes.php';