Changeset 13155 for trunk/wp-admin/plugins.php
- Timestamp:
- 02/14/2010 02:46:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r13100 r13155 40 40 if ( !empty($action) ) { 41 41 $network_wide = false; 42 if ( isset($_GET['networkwide']) && is_multisite() && is_super_admin() )42 if ( ( isset( $_GET['networkwide'] ) || 'network-activate-selected' == $action ) && is_multisite() && is_super_admin() ) 43 43 $network_wide = true; 44 44 … … 64 64 break; 65 65 case 'activate-selected': 66 case 'network-activate-selected': 66 67 if ( ! current_user_can('activate_plugins') ) 67 68 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.')); … … 70 71 71 72 $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 72 $plugins = array_filter($plugins, create_function('$plugin', 'return !is_plugin_active($plugin);') ); // Only activate plugins which are not already active.73 $plugins = array_filter($plugins, create_function('$plugin', 'return !is_plugin_active($plugin);') ); // Only activate plugins which are not already active. 73 74 if ( empty($plugins) ) { 74 75 wp_redirect("plugins.php?plugin_status=$status&paged=$page"); … … 565 566 <option value="activate-selected"><?php _e('Activate'); ?></option> 566 567 <?php endif; ?> 568 <?php if ( is_multisite() && 'network' != $context ) : ?> 569 <option value="network-activate-selected"><?php _e('Network Activate'); ?></option> 570 <?php endif; ?> 567 571 <?php if ( 'inactive' != $context && 'recent' != $context ) : ?> 568 572 <option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
Note: See TracChangeset
for help on using the changeset viewer.