Changeset 12317 for trunk/wp-admin/plugins.php
- Timestamp:
- 12/03/2009 01:43:49 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugins.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r12231 r12317 65 65 check_admin_referer('bulk-manage-plugins'); 66 66 67 $plugins = (array) $_POST['checked'];67 $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 68 68 $plugins = array_filter($plugins, create_function('$plugin', 'return !is_plugin_active($plugin);') ); //Only activate plugins which are not already active. 69 69 if ( empty($plugins) ) { … … 116 116 check_admin_referer('bulk-manage-plugins'); 117 117 118 $plugins = (array) $_POST['checked'];118 $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 119 119 $plugins = array_filter($plugins, 'is_plugin_active'); //Do not deactivate plugins which are already deactivated. 120 120 if ( empty($plugins) ) { … … 139 139 check_admin_referer('bulk-manage-plugins'); 140 140 141 $plugins = (array) $_REQUEST['checked']; //$_POST = from the plugin form; $_GET = from the FTP details screen. 141 //$_POST = from the plugin form; $_GET = from the FTP details screen. 142 $plugins = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array(); 142 143 $plugins = array_filter($plugins, create_function('$plugin', 'return !is_plugin_active($plugin);') ); //Do not allow to delete Activated plugins. 143 144 if ( empty($plugins) ) {
Note: See TracChangeset
for help on using the changeset viewer.