Make WordPress Core

#48178 closed enhancement (fixed)

Unused global $wpdb in WP_Privacy_Requests_Table::prepare_items

Reported by: david.binda Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: minor Version: 5.0
Component: Privacy Keywords:
Focuses: Cc:


The global $wpdb variable in WP_Privacy_Requests_Table::prepare_items is not being used. It has actually never been used inside the method. It should be safe to remove it.

Attachments (1)

48178.diff (574 bytes) - added by david.binda 21 months ago.

Download all attachments as: .zip

Change History (4)

21 months ago

#1 @jrf
21 months ago

LGTM. The function uses a new WP_Query instance, not $wpdb.

#2 @SergeyBiryukov
21 months ago

  • Milestone changed from Awaiting Review to 5.3

#3 @SergeyBiryukov
21 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 46374:

Privacy: Remove unused $wpdb global in WP_Privacy_Requests_Table::prepare_items().

Props david.binda.
Fixes #48178.

Note: See TracTickets for help on using tickets.