mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@47167 git-svn-id: http://core.svn.wordpress.org/trunk@46967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e79f7f71aa
commit
8163215dc4
@ -159,8 +159,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||||||
$show_network_active = apply_filters( 'show_network_active_plugins', $show );
|
$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' ) ) {
|
if ( $screen->in_admin( 'network' ) ) {
|
||||||
$recently_activated = get_site_option( 'recently_activated', array() );
|
$recently_activated = get_site_option( 'recently_activated', array() );
|
||||||
} else {
|
} else {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-47166';
|
$wp_version = '5.4-alpha-47167';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user