Make WordPress Core

Changeset 61312

Timestamp:
11/27/2025 01:11:09 AM (13 hours ago)
Author:
westonruter
Message:

Upgrade/Install: Initialize plugin dependencies during ajax plugin search.

This ensures that a plugin's "Deactivate" link is disabled for dependency plugins during searches when a dependent plugin is active. It also ensures the "Requires" metadata is shown for dependent plugins, and the "Required by" metadata is shown for dependency plugins.

Developed in https://github.com/WordPress/wordpress-develop/pull/10547

Follow-up to [57545].

Props hbhalodia, webdados, swissspidy, ravichudasama01.
See #22316.
Fixes #64288.

File:
1 edited

Legend:

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

    r61224 r61312  
    48054805    wp_plugin_update_rows();
    48064806
     4807    WP_Plugin_Dependencies::initialize();
     4808
    48074809    $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : '';
    48084810    if ( 'plugins-network' === $pagenow || 'plugins' === $pagenow ) {
Note: See TracChangeset for help on using the changeset viewer.