WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/07/2009 02:07:24 AM (13 years ago)
Author:
ryan
Message:

Don't show already installed plugins in the Plugins dashboard widget. Props Viper007Bond. fixes #8781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r10150 r10738  
    213213$recent_plugins = array();
    214214$recently_activated = (array) get_option('recently_activated');
    215 
    216 //Clean out any plugins which were deactivated over a week ago.
     215set_transient( 'plugin_slugs', array_keys($all_plugins), 86400 );
     216
     217// Clean out any plugins which were deactivated over a week ago.
    217218foreach ( $recently_activated as $key => $time )
    218219    if ( $time + (7*24*60*60) < time() ) //1 week
Note: See TracChangeset for help on using the changeset viewer.