From 3e40f12574e8bab721d58c7821f6cc0f5cc5f415 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Oct 2019 23:22:58 +0000 Subject: [PATCH] Privacy: Remove unused `$wpdb` global in `WP_Privacy_Requests_Table::prepare_items()`. Props david.binda. Fixes #48178. Built from https://develop.svn.wordpress.org/trunk@46374 git-svn-id: http://core.svn.wordpress.org/trunk@46173 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-privacy-requests-table.php | 2 -- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-privacy-requests-table.php b/wp-admin/includes/class-wp-privacy-requests-table.php index b252d1a4e6..efbd4a2a82 100644 --- a/wp-admin/includes/class-wp-privacy-requests-table.php +++ b/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( diff --git a/wp-includes/version.php b/wp-includes/version.php index 243e547fa1..404931b79a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta2-46373'; +$wp_version = '5.3-beta2-46374'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.