Make WordPress Core

Ticket #5658: plugins.php.diff

File plugins.php.diff, 658 bytes (added by arickmann, 17 years ago)

plugins.php patched

  • plugins.php

     
    44if ( isset($_GET['action']) ) {
    55        if ( 'activate' == $_GET['action'] ) {
    66                check_admin_referer('activate-plugin_' . $_GET['plugin']);
    7                 $result = activate_plugin($_GET['plugin'], 'plugins.php?error=true&plugin=' . $plugin);
     7                $result = activate_plugin($_GET['plugin'], 'plugins.php?error=true&plugin=' . $_GET['plugin']);
    88                if ( is_wp_error( $result ) )
    99                        wp_die( $result->get_error_message() );
    1010                wp_redirect('plugins.php?activate=true'); // overrides the ?error=true one above