mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Don't show already installed plugins in the Plugins dashboard widget. Props Viper007Bond. fixes #8781
git-svn-id: https://develop.svn.wordpress.org/trunk@10738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -212,8 +212,9 @@ $active_plugins = array();
|
||||
$inactive_plugins = array();
|
||||
$recent_plugins = array();
|
||||
$recently_activated = (array) get_option('recently_activated');
|
||||
set_transient( 'plugin_slugs', array_keys($all_plugins), 86400 );
|
||||
|
||||
//Clean out any plugins which were deactivated over a week ago.
|
||||
// Clean out any plugins which were deactivated over a week ago.
|
||||
foreach ( $recently_activated as $key => $time )
|
||||
if ( $time + (7*24*60*60) < time() ) //1 week
|
||||
unset($recently_activated[ $key ]);
|
||||
@@ -394,4 +395,4 @@ function print_plugin_actions($context) {
|
||||
|
||||
<?php
|
||||
include('admin-footer.php');
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user