diff --git a/wp-admin/includes/list-table.php b/wp-admin/includes/list-table.php index bccf0cab33..071df0dcc5 100644 --- a/wp-admin/includes/list-table.php +++ b/wp-admin/includes/list-table.php @@ -43,8 +43,10 @@ function _get_list_table( $class, $args = array() ) { if ( isset( $args['screen'] ) ) $args['screen'] = convert_to_screen( $args['screen'] ); - else + elseif ( isset( $GLOBALS['hook_suffix'] ) ) $args['screen'] = get_current_screen(); + else + $args['screen'] = null; return new $class( $args ); }