[wp-trac] [WordPress Trac] #64730: Connectors: Backport Connectors Screen

WordPress Trac noreply at wordpress.org
Wed Mar 4 12:49:04 UTC 2026


#64730: Connectors: Backport Connectors Screen
--------------------------------------+-------------------------------
 Reporter:  jorgefilipecosta          |       Owner:  jorgefilipecosta
     Type:  enhancement               |      Status:  closed
 Priority:  high                      |   Milestone:  7.0
Component:  Administration            |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------------
Changes (by gziolo):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61824" 61824]:
 {{{
 #!CommitTicketReference repository="" revision="61824"
 Connectors: Dynamically register providers from WP AI Client registry.

 Replaces `_wp_connectors_get_provider_settings()` with
 `_wp_connectors_get_connector_settings()` that returns a richer structure
 keyed
 by connector ID, including name, description, type, plugin slug, and an
 authentication sub-object (method, credentials_url, setting_name).

 The new function merges hardcoded defaults for featured providers
 (Anthropic,
 Google, OpenAI) with metadata from the WP AI Client registry, allowing
 dynamically registered providers to appear alongside built-in ones.
 Providers
 are sorted alphabetically with `ksort()`.

 Additionally:
 * Renames `_wp_connectors_is_api_key_valid()` to
   `_wp_connectors_is_ai_api_key_valid()`.
 * Adds `_wp_connectors_get_connector_script_module_data()` to expose
 connector
   settings to the `connectors-wp-admin` script module.
 * Includes plugin slug data for featured connectors to support
 install/activate UI.
 * Removes redundant `class_exists` checks for `AiClient`.
 * Runs `init` hooks at priority 20 so provider plugins registered at
 default
   priority are available.
 * Unhooks connector registration during tests to prevent duplicate
 registrations.

 Synced from https://github.com/WordPress/gutenberg/pull/76014.
 Developed in https://github.com/WordPress/wordpress-develop/pull/11080.

 Follow-up to [61749].

 Props gziolo, jorgefilipecosta, justlevine, flixos90, ellatrix.
 Fixes #64730.
 }}}

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


More information about the wp-trac mailing list