Changeset 61749
- Timestamp:
- 02/26/2026 01:34:20 PM (6 hours ago)
- Location:
- trunk
- Files:
-
- 6 added
- 3 edited
-
src/wp-includes/connectors.php (added)
-
src/wp-settings.php (modified) (1 diff)
-
tests/phpunit/includes/wp-ai-client-mock-provider-trait.php (added)
-
tests/phpunit/tests/connectors (added)
-
tests/phpunit/tests/connectors/wpConnectorsGetProviderSettings.php (added)
-
tests/phpunit/tests/connectors/wpConnectorsIsApiKeyValid.php (added)
-
tests/phpunit/tests/connectors/wpConnectorsMaskApiKey.php (added)
-
tests/phpunit/tests/rest-api/rest-settings-controller.php (modified) (1 diff)
-
tests/qunit/fixtures/wp-api-generated.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-settings.php
r61700 r61749 295 295 require ABSPATH . WPINC . '/ai-client/class-wp-ai-client-prompt-builder.php'; 296 296 require ABSPATH . WPINC . '/ai-client.php'; 297 require ABSPATH . WPINC . '/connectors.php'; 297 298 require ABSPATH . WPINC . '/class-wp-icons-registry.php'; 298 299 require ABSPATH . WPINC . '/widgets.php'; -
trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php
r61722 r61749 121 121 'site_icon', // Registered in wp-includes/blocks/site-logo.php 122 122 'wp_enable_real_time_collaboration', 123 // Connectors API keys are registered in _wp_register_default_connector_settings() in wp-includes/connectors.php. 124 'connectors_ai_anthropic_api_key', 125 'connectors_ai_google_api_key', 126 'connectors_ai_openai_api_key', 123 127 ); 124 128 -
trunk/tests/qunit/fixtures/wp-api-generated.js
r61722 r61749 11065 11065 ], 11066 11066 "args": { 11067 "connectors_ai_google_api_key": { 11068 "title": "Google API Key", 11069 "description": "API key for the Google AI provider.", 11070 "type": "string", 11071 "required": false 11072 }, 11073 "connectors_ai_openai_api_key": { 11074 "title": "OpenAI API Key", 11075 "description": "API key for the OpenAI AI provider.", 11076 "type": "string", 11077 "required": false 11078 }, 11079 "connectors_ai_anthropic_api_key": { 11080 "title": "Anthropic API Key", 11081 "description": "API key for the Anthropic AI provider.", 11082 "type": "string", 11083 "required": false 11084 }, 11067 11085 "title": { 11068 11086 "title": "Title", … … 14635 14653 14636 14654 mockedApiResponse.settings = { 14655 "connectors_ai_google_api_key": "", 14656 "connectors_ai_openai_api_key": "", 14657 "connectors_ai_anthropic_api_key": "", 14637 14658 "title": "Test Blog", 14638 14659 "description": "",
Note: See TracChangeset
for help on using the changeset viewer.