[wp-trac] [WordPress Trac] #65002: Connectors: Replace plugin.slug with plugin.file and harden plugin data handling

WordPress Trac noreply at wordpress.org
Wed Apr 1 14:57:04 UTC 2026


#65002: Connectors: Replace plugin.slug with plugin.file and harden plugin data
handling
-------------------------------------------------+-------------------------
 Reporter:  jorgefilipecosta                     |       Owner:
                                                 |  jorgefilipecosta
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  7.0
Component:  General                              |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  reviewed                                       |
-------------------------------------------------+-------------------------
Changes (by jorgefilipecosta):

 * owner:  (none) => jorgefilipecosta
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"62192" 62192]:
 {{{
 #!CommitTicketReference repository="" revision="62192"
 Connectors: Replace `plugin.slug` with `plugin.file` in connector
 registration.

 Use the plugin's main file path relative to the plugins directory
 (e.g. `akismet/akismet.php` or `hello.php`) instead of the WordPress.org
 slug
 to identify a connector's associated plugin.
 This lets `_wp_connectors_get_connector_script_module_data()` check plugin
 status with `file_exists()` and `is_plugin_active()` directly, removing
 the
 `get_plugins()` slug-to-file mapping that was previously needed.

 Props jorgefilipecosta, mukesh27, gziolo.
 Fixes #65002.
 }}}

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


More information about the wp-trac mailing list