Changeset 3804 for trunk/wp-admin/plugins.php
- Timestamp:
- 05/26/2006 11:08:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r3770 r3804 4 4 if ( isset($_GET['action']) ) { 5 5 if ('activate' == $_GET['action']) { 6 check_admin_referer('activate-plugin ' . $_GET['plugin']);6 check_admin_referer('activate-plugin_' . $_GET['plugin']); 7 7 $current = get_settings('active_plugins'); 8 8 if (!in_array($_GET['plugin'], $current)) { … … 15 15 header('Location: plugins.php?activate=true'); 16 16 } else if ('deactivate' == $_GET['action']) { 17 check_admin_referer('deactivate-plugin ' . $_GET['plugin']);17 check_admin_referer('deactivate-plugin_' . $_GET['plugin']); 18 18 $current = get_settings('active_plugins'); 19 19 array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu! … … 101 101 102 102 if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) { 103 $action = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", 'deactivate-plugin ' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";103 $action = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>"; 104 104 $plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>"; 105 105 $style .= $style == 'alternate' ? ' active' : 'active'; 106 106 } else { 107 $action = "<a href='" . wp_nonce_url("plugins.php?action=activate&plugin=$plugin_file", 'activate-plugin ' . $plugin_file) . "' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>";107 $action = "<a href='" . wp_nonce_url("plugins.php?action=activate&plugin=$plugin_file", 'activate-plugin_' . $plugin_file) . "' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>"; 108 108 } 109 109 $plugin_data['Description'] = wp_kses($plugin_data['Description'], array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()) ); ;
Note: See TracChangeset
for help on using the changeset viewer.