Skip to content

Commit c477348

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 WordPress/wordpress-develop#10547 Follow-up to [57545]. Props hbhalodia, webdados, swissspidy, ravichudasama01. See #22316. Fixes #64288. Built from https://develop.svn.wordpress.org/trunk@61312 git-svn-id: http://core.svn.wordpress.org/trunk@60624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 0286bc8 commit c477348

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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 );

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61311';
19+
$wp_version = '7.0-alpha-61312';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)