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
This commit is contained in:
parent
78029013d8
commit
3f050fcf63
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user