Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#49340 closed defect (bug) (fixed)

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

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

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 7 years ago.
Removed obsolete 'plugin_slugs' transient.

Download all attachments as: .zip

Change History (3)

@aftabmuni
7 years ago

Removed obsolete 'plugin_slugs' transient.

#1 @aftabmuni
7 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

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.