Make WordPress Core


Ignore:
Timestamp:
06/30/2021 12:20:52 AM (3 years ago)
Author:
peterwilsoncc
Message:

Upgrade/Install: Notify users of deactivated plugins during upgrade.

This adds a one-off notice to the dashboard in the event WordPress has automatically deactivated a plugin due to incompatibility with the new version of WordPress.

Introduces the new private function deactivated_plugins_notice() to display the notice in the dashboard. Introduces the new auto-loaded option wp_force_deactivated_plugins to store a list of automatically deactivated plugins; the option is used on both a site and network level.

Follow up to [51180].

Props desrosj, jorbin, azaozz, SergeyBiryukov, peterwilsoncc.
See #53432.

File:
1 edited

Legend:

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

    r50810 r51266  
    543543        // See https://core.trac.wordpress.org/ticket/51742.
    544544        'auto_update_core_major'          => 'enabled',
     545
     546        // 5.8.0
     547        'wp_force_deactivated_plugins'    => array(),
    545548    );
    546549
Note: See TracChangeset for help on using the changeset viewer.