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

git-svn-id: https://develop.svn.wordpress.org/trunk@15496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-08-12 23:21:05 +00:00
parent d570886128
commit 37401689c5
16 changed files with 271 additions and 170 deletions

View File

@@ -12,6 +12,7 @@ require_once( './admin.php' );
require_once( './includes/default-list-tables.php' );
$table = new WP_Posts_Table;
$table->check_permissions();
// Back-compat for viewing comments of an entry
if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) {
@@ -118,6 +119,8 @@ if ( 'post' != $post_type ) {
$post_new_file = 'post-new.php';
}
$table->prepare_items();
wp_enqueue_script('inline-edit-post');
$title = $post_type_object->labels->name;