Make WordPress Core


Ignore:
Timestamp:
02/20/2024 07:25:38 AM (10 months ago)
Author:
costdev
Message:

Plugin Dependencies: Remove auto-deactivation and bootstrapping logic.

Automatic deactivation of dependents with unmet dependencies requires a write operation to the database. This was performed during Core's bootstrap, which risked the database and cache becoming out-of-sync on sites with heavy traffic.

No longer loading plugins that have unmet requirements has not had a final approach decided core-wide, and is still in discussion in #60491 to be handled in a future release.

The plugin_data option, used to persistently store plugin data for detecting unmet dependencies during Core's bootstrap, is no longer needed.

Follow-up to [57545], [57592], [57606], [57617].

Props dd32, azaozz, swissspidy, desrosj, afragen, pbiron, zunaid321, costdev.
Fixes #60457. See #60491, #60510, #60518.

File:
1 edited

Legend:

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

    r57545 r57658  
    928928    // Determine the status of plugin dependencies.
    929929    $installed_plugins                   = get_plugins();
    930     $active_plugins                      = get_option( 'active_plugins' );
     930    $active_plugins                      = get_option( 'active_plugins', array() );
    931931    $plugin_dependencies_count           = count( $requires_plugins );
    932932    $installed_plugin_dependencies_count = 0;
Note: See TracChangeset for help on using the changeset viewer.