- Timestamp:
- 09/25/2015 07:15:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r34383 r34551 130 130 set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS ); 131 131 132 if ( ! $screen->in_admin( 'network' ) ) { 132 if ( $screen->in_admin( 'network' ) ) { 133 $recently_activated = get_site_option( 'recently_activated', array() ); 134 } else { 133 135 $recently_activated = get_option( 'recently_activated', array() ); 134 135 foreach ( $recently_activated as $key => $time ) 136 if ( $time + WEEK_IN_SECONDS < time() ) 137 unset( $recently_activated[$key] ); 136 } 137 138 foreach ( $recently_activated as $key => $time ) { 139 if ( $time + WEEK_IN_SECONDS < time() ) { 140 unset( $recently_activated[$key] ); 141 } 142 } 143 144 if ( $screen->in_admin( 'network' ) ) { 145 update_site_option( 'recently_activated', $recently_activated ); 146 } else { 138 147 update_option( 'recently_activated', $recently_activated ); 139 148 } … … 171 180 $plugins['active'][ $plugin_file ] = $plugin_data; 172 181 } else { 173 if ( ! $screen->in_admin( 'network' ) &&isset( $recently_activated[ $plugin_file ] ) ) {174 // On the non-network screen, populate the recently activated list with plugins that have been recently activated182 if ( isset( $recently_activated[ $plugin_file ] ) ) { 183 // Populate the recently activated list with plugins that have been recently activated 175 184 $plugins['recently_activated'][ $plugin_file ] = $plugin_data; 176 185 } … … 401 410 echo '<div class="alignleft actions">'; 402 411 403 if ( ! $this->screen->in_admin( 'network' ) && 'recently_activated' === $status ) {412 if ( 'recently_activated' == $status ) { 404 413 submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); 405 414 } elseif ( 'top' === $which && 'mustuse' === $status ) {
Note: See TracChangeset
for help on using the changeset viewer.