Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #60504, comment 2


Ignore:
Timestamp:
02/28/2024 09:04:49 PM (3 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60504, comment 2

    v4 v5  
    88
    99=== Core patch
    10 1. Move the initialization of Plugin Dependencies until after `do_action( 'muplugins_loaded' );` so that the Must-Use plugin's "loader" file can tell Core what its filename is via the `wp_plugin_dependencies_slug` hook.
    11 2. Ensure all calls to `get_mu_plugins()` and `get_plugins()` ''update'' the `plugin_data` option, rather than replace it (as is currently done in `get_plugins()`.
     101. ~~Move the initialization of Plugin Dependencies until after `do_action( 'muplugins_loaded' );` so that the Must-Use plugin's "loader" file can tell Core what its filename is via the `wp_plugin_dependencies_slug` hook.~~ - Plugin Dependencies is no longer initialized in bootstrap.
     112. ~~Ensure all calls to `get_mu_plugins()` and `get_plugins()` ''update'' the `plugin_data` option, rather than replace it (as is currently done in `get_plugins()`.~~ - The `plugin_data` option no longer exists.
    12123. Add a new `$mustuse_plugins` property to `WP_Plugin_Dependencies`.
    13134. In `WP_Plugin_Dependencies::get_plugins()`, store `get_mu_plugins()` in the new `$mustuse_plugins` property, and ensure these are also merged into `self::$plugins` to avoid several `array_merge( self::get_plugins(), self::$mustuse_plugins )` calls elsewhere.