Changeset 27413
- Timestamp:
- 03/05/2014 06:25:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugins.php
r27280 r27413 70 70 $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 71 71 72 // Only activate plugins which are not already active.73 72 if ( is_network_admin() ) { 74 73 foreach ( $plugins as $i => $plugin ) { 75 if ( is_plugin_active_for_network( $plugin ) ) 74 // Only activate plugins which are not already network activated. 75 if ( is_plugin_active_for_network( $plugin ) ) { 76 76 unset( $plugins[ $i ] ); 77 } 77 78 } 78 79 } else { 79 80 foreach ( $plugins as $i => $plugin ) { 80 if ( is_plugin_active( $plugin ) || is_network_only_plugin( $plugin ) ) 81 // Only activate plugins which are not already active and are not network-only when on Multisite. 82 if ( is_plugin_active( $plugin ) || ( is_multisite() && is_network_only_plugin( $plugin ) ) ) { 81 83 unset( $plugins[ $i ] ); 84 } 82 85 } 83 86 }
Note: See TracChangeset
for help on using the changeset viewer.