Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60491, comment 3


Ignore:
Timestamp:
02/10/2024 03:34:30 AM (17 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60491, comment 3

    initial v1  
    11The main difference between "not loaded" and "deactivated" in the context of #60457 is that deactivating performs a DB write to `active_plugins`, whereas not loading just skips the `require_once`.
    22
    3 To avoid a DB write, we would have to remove the automatic deactivation of dependents with unmet dependencies, at least from the frontend.
     3We will have to remove the automatic deactivation of dependents with unmet dependencies, at least from the frontend.
    44
    55Changing so that automatic deactivation is only performed on `plugins.php`, for example, will involve relocating `WP_Plugin_Dependencies::initialize()` to below `require ABSPATH . WPINC . '/vars.php';` in `wp-settings.php`. This means that `$pagenow` is defined and can therefore be used in a guard.