Changeset 13155 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 02/14/2010 02:46:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r13082 r13155 438 438 * @param string|array $plugins 439 439 * @param string $redirect Redirect to page after successful activation. 440 * @param bool $network_wide Whether to enable the plugin for all sites in the network. 440 441 * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation. 441 442 */ 442 function activate_plugins($plugins, $redirect = '' ) {443 function activate_plugins($plugins, $redirect = '', $network_wide) { 443 444 if ( !is_array($plugins) ) 444 445 $plugins = array($plugins); … … 448 449 if ( !empty($redirect) ) 449 450 $redirect = add_query_arg('plugin', $plugin, $redirect); 450 $result = activate_plugin($plugin, $redirect );451 $result = activate_plugin($plugin, $redirect, $network_wide); 451 452 if ( is_wp_error($result) ) 452 453 $errors[$plugin] = $result;
Note: See TracChangeset
for help on using the changeset viewer.