-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Connectors: Add connectors registry for extensibility #11175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
132f672
Connectors: Add `wp_connectors_settings` filter for extensibility.
gziolo ea5fe48
Connectors: Improve `wp_connectors_settings` filter PHPDoc and test c…
gziolo e5ca2b3
Connectors: Add registry guards before registering settings and passi…
gziolo ccafc8d
Connectors: Move `wp_connectors_settings` filter after `setting_name`…
gziolo 0a93a5f
Connectors: Add test for filter returning empty array.
gziolo c0736e5
Connectors: Replace filter with WP_Connector_Registry and action-base…
gziolo b733ffc
Connectors: Preserve AI Client registry data precedence over hardcode…
gziolo f07ab82
Apply suggestions from code review
gziolo 45571c3
Update src/wp-includes/connectors.php
gziolo b5c0289
Connectors: Address review feedback for registry extensibility.
gziolo 064ef5e
Apply suggestions from code review
gziolo 0286b11
Update src/wp-includes/class-wp-connector-registry.php
gziolo 1850024
Connectors: Remove wp_register_connector() wrapper in favor of direct…
gziolo 7f91d3b
Connectors: Add timing guard to WP_Connector_Registry::set_instance().
gziolo 96e934d
Connectors: Add setting_name to PHPStan Connector type.
gziolo 5b9603c
Connectors: Fix indentation in catch block.
gziolo 96e2ff6
Connectors: Format PHPStan Connector type as multi-line.
gziolo 0362b35
Connectors: Restrict set_instance() to only work during the init action.
gziolo 9989675
Connectors: Add logo_url support to the connector registry.
gziolo 1f8e9a8
Tests: Add tests for _wp_connectors_resolve_ai_provider_logo_url().
gziolo 408d5c4
Connectors: Add method_exists() check for getLogoPath().
gziolo 5abc91e
Connectors: Remove method_exists() check for getLogoPath().
gziolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Connectors: Add timing guard to WP_Connector_Registry::set_instance().
Triggers _doing_it_wrong if set_instance() is called after the init action has completed, preventing late overrides of the registry singleton. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Loading branch information
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.