Make WordPress Core

Changeset 47167


Ignore:
Timestamp:
02/02/2020 03:48:37 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r47122 r47167  
    159159            $show_network_active = apply_filters( 'show_network_active_plugins', $show );
    160160        }
    161 
    162         set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS );
    163161
    164162        if ( $screen->in_admin( 'network' ) ) {
Note: See TracChangeset for help on using the changeset viewer.