Connectors: Register Akismet Anti-Spam as a default connector#11399
Connectors: Register Akismet Anti-Spam as a default connector#11399jorgefilipecosta wants to merge 4 commits intoWordPress:trunkfrom
Conversation
Add Akismet as a non-AI default connector with `spam_filtering` type. Uses the existing `wordpress_api_key` option for the API key and checks the `WPCOM_API_KEY` constant. See #64957.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @1178653+wordpress-develop-pr-bot[bot]@users.noreply.github.com. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| _wp_connectors_register_default_ai_providers( $registry ); | ||
| } | ||
|
|
||
| // Non-AI default connectors. |
There was a problem hiding this comment.
Only this part is relevant the rest is Gutenberg ref update which is included for testing but will not be part of the commit.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Adjusts unit tests to account for the newly registered Akismet connector: - Add `akismet` to expected connector keys and update count. - Allow `spam_filtering` as a valid connector type. - Scope `connectors_ai_` setting name check to AI providers only. - Add `wordpress_api_key` to expected REST settings. See #64730.
Summary
Register Akismet Anti-Spam as a built-in non-AI connector with
spam_filteringtype.wordpress_api_keyWordPress option for API key storageWPCOM_API_KEYPHP constantTesting
Verify the akismet connector works as expected:
See also: WordPress/gutenberg#76828