Make WordPress Core

Changeset 21104


Ignore:
Timestamp:
06/25/2012 07:32:34 PM (12 years ago)
Author:
nacin
Message:

Back compat for plugins looking for networkwide=1 during a plugin activation hook.

Proper way to detect this: An activation hook callback receives (bool) $network_wide as the first argument.

see #20995 for trunk.

File:
1 edited

Legend:

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

    r20555 r21104  
    522522        $network_wide = true;
    523523        $current = get_site_option( 'active_sitewide_plugins', array() );
     524        $_GET['networkwide'] = 1; // Back compat for plugins looking for this value.
    524525    } else {
    525526        $current = get_option( 'active_plugins', array() );
Note: See TracChangeset for help on using the changeset viewer.