Changeset 21996 for trunk/wp-admin/includes/class-wp-plugins-list-table.php
- Timestamp:
- 09/25/2012 05:26:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r21914 r21996 71 71 } 72 72 73 set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), 86400);73 set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS ); 74 74 75 75 if ( ! $screen->is_network ) { 76 76 $recently_activated = get_option( 'recently_activated', array() ); 77 77 78 $one_week = 7*24*60*60;79 78 foreach ( $recently_activated as $key => $time ) 80 if ( $time + $one_week< time() )79 if ( $time + WEEK_IN_SECONDS < time() ) 81 80 unset( $recently_activated[$key] ); 82 81 update_option( 'recently_activated', $recently_activated );
Note: See TracChangeset
for help on using the changeset viewer.