From ee03b05605fdf8980779cefe8224d55749ddeb11 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Oct 2019 23:21:17 +0000 Subject: [PATCH] Privacy: Remove unused `$wpdb` global in `WP_Privacy_Requests_Table::prepare_items()`. Props david.binda. Fixes #48178. git-svn-id: https://develop.svn.wordpress.org/trunk@46374 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-privacy-requests-table.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-privacy-requests-table.php b/src/wp-admin/includes/class-wp-privacy-requests-table.php index b252d1a4e6..efbd4a2a82 100644 --- a/src/wp-admin/includes/class-wp-privacy-requests-table.php +++ b/src/wp-admin/includes/class-wp-privacy-requests-table.php @@ -267,8 +267,6 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { * @since 5.1.0 Added support for column sorting. */ public function prepare_items() { - global $wpdb; - $this->items = array(); $posts_per_page = $this->get_items_per_page( $this->request_type . '_requests_per_page' ); $args = array(