Make WordPress Core

Changeset 6626


Ignore:
Timestamp:
01/16/2008 04:45:36 PM (19 years ago)
Author:
ryan
Message:

Make sure plugin is set. Props arickmann. fixes #5658

File:
1 edited

Legend:

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

    r6580 r6626  
    33
    44if ( isset($_GET['action']) ) {
     5        if ( isset($_GET['plugin']) )
     6                $plugin = trim($_GET['plugin']);
     7
    58        if ( 'activate' == $_GET['action'] ) {
    69                check_admin_referer('activate-plugin_' . $_GET['plugin']);
    … …  
    1013                wp_redirect('plugins.php?activate=true'); // overrides the ?error=true one above
    1114        } elseif ( 'error_scrape' == $_GET['action'] ) {
    12                 $plugin = trim($_GET['plugin']);
    1315                check_admin_referer('plugin-activation-error_' . $plugin);
    1416                $valid = validate_plugin($plugin);
Note: See TracChangeset for help on using the changeset viewer.