Changeset 16089 for trunk/wp-admin/plugins.php
- Timestamp:
- 10/29/2010 07:09:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r16061 r16089 64 64 65 65 $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 66 $plugins = array_filter($plugins, create_function('$plugin', 'return !is_plugin_active($plugin);') ); // Only activate plugins which are not already active. 66 67 // Only activate plugins which are not already active. 68 $check = $network_wide ? 'is_plugin_active_for_network' : 'is_plugin_active'; 69 foreach ( $plugins as $i => $plugin ) 70 if ( $check( $plugin ) ) 71 unset( $plugins[ $i ] ); 72 67 73 if ( empty($plugins) ) { 68 74 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") );
Note: See TracChangeset
for help on using the changeset viewer.