Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#49340 closed defect (bug) (fixed)

Remove obsolete 'plugin_slugs' transient from WP_Plugins_List_Table::prepare_items()

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: Plugins Keywords: good-first-bug has-patch
Focuses: administration Cc:

Description

WP_Plugins_List_Table::prepare_items() sets the plugin_slugs transient.

However, that transient is only used in the wp_dashboard_plugins_output() function, which is deprecated and unused since [40607] / #40702. It does not affect anything else.

The function itself also sets the same transient, so it can be removed from WP_Plugins_List_Table.

Attachments (1)

49340.diff (595 bytes) - added by aftabmuni 4 years ago.
Removed obsolete 'plugin_slugs' transient.

Download all attachments as: .zip

Change History (3)

@aftabmuni
4 years ago

Removed obsolete 'plugin_slugs' transient.

#1 @aftabmuni
4 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
4 years ago

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

In 47167:

Plugins: Remove obsolete plugin_slugs transient from WP_Plugins_List_Table::prepare_items().

The transient is only used in the wp_dashboard_plugins_output() function, which is deprecated and unused since [40607].

The function itself also sets the same transient, so it can be removed from WP_Plugins_List_Table.

Props aftabmuni.
Fixes #49340.

Note: See TracTickets for help on using tickets.