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/themes.php

    r15491 r15496  
    1010require_once('./admin.php');
    1111
    12 if ( !current_user_can('switch_themes') && !current_user_can('edit_theme_options') )
    13     wp_die( __( 'Cheatin’ uh?' ) );
     12require_once( './includes/default-list-tables.php' );
     13
     14$table = new WP_Themes_Table;
     15$table->check_permissions();
    1416
    1517if ( current_user_can('switch_themes') && isset($_GET['action']) ) {
     
    2931}
    3032
    31 require_once( './includes/default-list-tables.php' );
    32 
    33 $table = new WP_Themes_Table;
     33$table->prepare_items();
    3434
    3535$title = __('Manage Themes');
Note: See TracChangeset for help on using the changeset viewer.