Make WordPress Core


Ignore:
Timestamp:
05/26/2006 11:08:05 PM (19 years ago)
Author:
ryan
Message:

Update nonce action strings. Props mdawaffe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r3770 r3804  
    44if ( isset($_GET['action']) ) {
    55    if ('activate' == $_GET['action']) {
    6         check_admin_referer('activate-plugin' . $_GET['plugin']);
     6        check_admin_referer('activate-plugin_' . $_GET['plugin']);
    77        $current = get_settings('active_plugins');
    88        if (!in_array($_GET['plugin'], $current)) {
     
    1515        header('Location: plugins.php?activate=true');
    1616    } else if ('deactivate' == $_GET['action']) {
    17         check_admin_referer('deactivate-plugin' . $_GET['plugin']);
     17        check_admin_referer('deactivate-plugin_' . $_GET['plugin']);
    1818        $current = get_settings('active_plugins');
    1919        array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu!
     
    101101
    102102        if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
    103             $action = "<a href='" . wp_nonce_url("plugins.php?action=deactivate&amp;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&amp;plugin=$plugin_file", 'deactivate-plugin_' . $plugin_file) . "' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";
    104104            $plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>";
    105105            $style .= $style == 'alternate' ? ' active' : 'active';
    106106        } else {
    107             $action = "<a href='" . wp_nonce_url("plugins.php?action=activate&amp;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&amp;plugin=$plugin_file", 'activate-plugin_' . $plugin_file) . "' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>";
    108108        }
    109109        $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.