[wp-trac] [WordPress Trac] #65020: Connectors: Support custom plugin is_active callback in connector registry and plugin status output

WordPress Trac noreply at wordpress.org
Fri Apr 3 13:58:17 UTC 2026


#65020: Connectors: Support custom plugin is_active callback in connector registry
and plugin status output
--------------------------+-------------------------------------
 Reporter:  iamadisingh   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  AI            |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-testing has-patch
  Focuses:                |
--------------------------+-------------------------------------
 This changeset backports connector improvements from Gutenberg to Core:
 - Extend connector plugin metadata to support optional `plugin.is_active`
 callback.
 - Validate `plugin.is_active` as callable during
 `WP_Connector_Registry::register()`.
 - Use `plugin.is_active` callback when building connector script-module
 data, with fallback to file_exists + is_plugin_active.
 - Update default Akismet connector to use a robust activity check:
 `defined( AKISMET_VERSION ) && class_exists( Akismet, false )`.

 Some plugins (especially MU-loaded or non-standard load paths) cannot be
 reliably detected via is_plugin_active(file) alone. Allowing an explicit
 activity callback provides accurate activation state in connectors UI.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65020>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list