From 3f050fcf63e14a777e1b4ebbe57cf7dfb8b79259 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 Feb 2020 15:48:37 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@47167 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-plugins-list-table.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index b92d1c53d9..3ec88eb7c2 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -159,8 +159,6 @@ class WP_Plugins_List_Table extends WP_List_Table { $show_network_active = apply_filters( 'show_network_active_plugins', $show ); } - set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS ); - if ( $screen->in_admin( 'network' ) ) { $recently_activated = get_site_option( 'recently_activated', array() ); } else {