mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Default to get_current_screen() in list table classes. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16182 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -45,7 +45,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
var $sticky_posts_count = 0;
|
||||
|
||||
function WP_Posts_List_Table() {
|
||||
global $post_type_object, $post_type, $current_screen, $wpdb;
|
||||
global $post_type_object, $post_type, $wpdb;
|
||||
|
||||
if ( !isset( $_REQUEST['post_type'] ) )
|
||||
$post_type = 'post';
|
||||
@@ -74,7 +74,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
parent::WP_List_Table( array(
|
||||
'screen' => $current_screen,
|
||||
'plural' => 'posts',
|
||||
) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user