Changeset 15525 for trunk/wp-admin/includes/default-list-tables.php
- Timestamp:
- 08/23/2010 09:31:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15524 r15525 3094 3094 'active' => array(), 3095 3095 'inactive' => array(), 3096 'recent' => array(), 3097 'recently_activated' => get_option( 'recently_activated', array() ), 3096 'recently_activated' => array(), 3098 3097 'upgrade' => array(), 3099 3098 'mustuse' => array(), … … 3110 3109 set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), 86400 ); 3111 3110 3112 // Clean out any plugins which were deactivated over a week ago. 3113 foreach ( $plugins['recently_activated'] as $key => $time ) 3114 if ( $time + ( 7*24*60*60 ) < time() ) //1 week 3115 unset( $plugins['recently_activated'][$key] ); 3116 update_option( 'recently_activated', $plugins['recently_activated'] ); 3111 $recently_activated = get_option( 'recently_activated', array() ); 3112 3113 $one_week = 7*24*60*60; 3114 foreach ( $recently_activated as $key => $time ) 3115 if ( $time + $one_week < time() ) 3116 unset( $recently_activated[$key] ); 3117 update_option( 'recently_activated', $recently_activated ); 3118 3117 3119 $current = get_site_transient( 'update_plugins' ); 3118 3120 … … 3135 3137 } else { 3136 3138 if ( !is_network_admin() && isset( $recently_activated[ $plugin_file ] ) ) // Was the plugin recently activated? 3137 $plugins['recent '][ $plugin_file ] = $plugin_data;3139 $plugins['recently_activated'][ $plugin_file ] = $plugin_data; 3138 3140 $plugins['inactive'][ $plugin_file ] = $plugin_data; 3139 3141 }
Note: See TracChangeset
for help on using the changeset viewer.