Make WordPress Core


Ignore:
Timestamp:
10/27/2010 01:40:14 PM (14 years ago)
Author:
scribu
Message:

Don't call activation hooks when upgrading. Props joelhardi for initial patch. See #14915

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update.php

    r16008 r16012  
    7272        if ( ! isset($_GET['failure']) && ! isset($_GET['success']) ) {
    7373            wp_redirect( admin_url('update.php?action=activate-plugin&failure=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce']) );
    74             activate_plugin( $plugin, '', ! empty( $_GET['networkwide'] ) );
     74            activate_plugin( $plugin, '', ! empty( $_GET['networkwide'] ), true );
    7575            wp_redirect( admin_url('update.php?action=activate-plugin&success=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce']) );
    7676            die();
Note: See TracChangeset for help on using the changeset viewer.