Make WordPress Core

Changeset 25817


Ignore:
Timestamp:
10/16/2013 07:47:21 PM (10 years ago)
Author:
dd32
Message:

When a plugin enables Background Plugin updates, don't deactivate the plugin during update as we require a browser to reactivate it afterwards. See #22704

File:
1 edited

Legend:

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

    r25815 r25817  
    663663            return $return;
    664664
     665        // When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it
     666        if ( defined( 'DOING_CRON' ) && DOING_CRON )
     667            return $return;
     668
    665669        $plugin = isset($plugin['plugin']) ? $plugin['plugin'] : '';
    666670        if ( empty($plugin) )
Note: See TracChangeset for help on using the changeset viewer.