[wp-trac] [WordPress Trac] #64288: Deactivate link is active for plugins required by others when searching

WordPress Trac noreply at wordpress.org
Tue Nov 25 11:38:46 UTC 2025


#64288: Deactivate link is active for plugins required by others when searching
--------------------------+-----------------------------
 Reporter:  webdados      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  7.0
Component:  Plugins       |     Version:  6.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by iflairwebtechnologies):

 **Patch Summary**
 This patch ensures that plugin dependency metadata is properly loaded when
 performing an AJAX plugin search. The AJAX endpoint
 wp_ajax_search_plugins() was not calling
 WP_Plugin_Dependencies::initialize(), which caused dependency-aware action
 links (e.g., disabling “Deactivate”) to behave incorrectly during filtered
 views.

 **Technical Details**
 The normal (non-AJAX) plugins list initializes dependencies during page
 load, but the AJAX callback does not. As a result, the dependency graph is
 unavailable in the AJAX context, causing incorrect display of action links
 in search results.
 The patch inserts WP_Plugin_Dependencies::initialize() before calling
 $wp_list_table->prepare_items().

 https://prnt.sc/petd4LmPYagE

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64288#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list