WordPress.org

Make WordPress Core

Changeset 21130


Ignore:
Timestamp:
06/26/12 04:03:31 (22 months 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.

fixes #20995 for 3.4.

File:
1 edited

Legend:

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

    r20555 r21130  
    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.