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/admin-filters.php

    r48412 r51266  
    115115
    116116add_action( 'admin_notices', 'update_nag', 3 );
     117add_action( 'admin_notices', 'deactivated_plugins_notice', 5 );
    117118add_action( 'admin_notices', 'paused_plugins_notice', 5 );
    118119add_action( 'admin_notices', 'paused_themes_notice', 5 );
Note: See TracChangeset for help on using the changeset viewer.