Skip to content

Commit 6b7adc0

Browse files
committed
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 #10547 Follow-up to [57545]. Props hbhalodia, webdados, swissspidy, ravichudasama01. See #22316. Fixes #64288. git-svn-id: https://develop.svn.wordpress.org/trunk@61312 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9956c86 commit 6b7adc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wp-admin/includes/ajax-actions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4804,6 +4804,8 @@ function wp_ajax_search_plugins() {
48044804
// Ensure after_plugin_row_{$plugin_file} gets hooked.
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 ) {
48094811
set_current_screen( $pagenow );

0 commit comments

Comments
 (0)