mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user