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:
scribu
2010-11-04 15:00:55 +00:00
parent 2bc9ef93c1
commit 7edd2f0090
14 changed files with 20 additions and 58 deletions
@@ -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',
) );
}