Make WordPress Core

Changeset 32504


Ignore:
Timestamp:
05/14/2015 06:57:47 AM (11 years ago)
Author:
dd32
Message:

Allow plugins to activate other plugins within their Activation hook. Fixes #32368

File:
1 edited

Legend:

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

    r32340 r32504  
    577577
    578578                if ( $network_wide ) {
     579                        $current = get_site_option( 'active_sitewide_plugins', array() );
    579580                        $current[$plugin] = time();
    580581                        update_site_option( 'active_sitewide_plugins', $current );
    581582                } else {
     583                        $current = get_option( 'active_plugins', array() );
    582584                        $current[] = $plugin;
    583585                        sort($current);
Note: See TracChangeset for help on using the changeset viewer.