Make WordPress Core


Ignore:
Timestamp:
08/12/2010 11:21:05 PM (16 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/edit-comments.php

    r15491 r15496  
    1010require_once('./admin.php');
    1111
    12 if ( !current_user_can('edit_posts') )
    13     wp_die(__('Cheatin’ uh?'));
     12require_once( './includes/default-list-tables.php' );
     13
     14$table = new WP_Comments_Table;
     15$table->check_permissions();
    1416
    1517if ( isset( $_REQUEST['doaction'] ) ||  isset( $_REQUEST['doaction2'] ) || isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
     
    9698}
    9799
    98 require_once( './includes/default-list-tables.php' );
    99 
    100 $table = new WP_Comments_Table;
     100$table->prepare_items();
    101101
    102102wp_enqueue_script('admin-comments');
Note: See TracChangeset for help on using the changeset viewer.