Make WordPress Core

Changeset 12670


Ignore:
Timestamp:
01/08/2010 08:15:22 PM (15 years ago)
Author:
ryan
Message:

Disable sitewide plugin actions that use unfiltered GET and generate warnings pending further scrutiny. see #11767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r12632 r12670  
    776776    return true;
    777777}
    778 add_action( 'activate_' . $_GET['plugin'], 'activate_sitewide_plugin' );
     778
     779// @todo Throws warning if plugin is not set.  Kinda janky.
     780//add_action( 'activate_' . $_GET['plugin'], 'activate_sitewide_plugin' );
    779781
    780782/**
     
    801803    return true;
    802804}
    803 add_action( 'deactivate_' . $_GET['plugin'], 'deactivate_sitewide_plugin' );
     805// @todo Throws warning if plugin is not set.  Kinda janky.
     806//add_action( 'deactivate_' . $_GET['plugin'], 'deactivate_sitewide_plugin' );
    804807add_action( 'deactivate_invalid_plugin', 'deactivate_sitewide_plugin' );
    805808
     
    10101013    }
    10111014}
    1012 add_action( 'activate_' . $_GET['plugin'], 'check_is_wpmu_plugin_on_activate' );
     1015// @todo Throws warning if plugin is not set.  Kinda janky.
     1016//add_action( 'activate_' . $_GET['plugin'], 'check_is_wpmu_plugin_on_activate' );
    10131017
    10141018/**
Note: See TracChangeset for help on using the changeset viewer.