Changeset 63348 for trunk/src/wp-includes/connectors.php
- Timestamp:
- 08/26/2026 11:48:53 AM (2 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/connectors.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/connectors.php
r62684 r63348 732 732 $value = $data[ $setting_name ]; 733 733 734 // On update, validate AI provider keys before masking.734 // On update, validate AI provider keys submitted in the request before masking. 735 735 // Non-AI connectors accept keys as-is; the service plugin handles its own validation. 736 if ( $is_update && is_string( $value ) && '' !== $value && 'ai_provider' === $connector_data['type'] ) { 736 if ( $is_update 737 && $request->has_param( $setting_name ) 738 && is_string( $value ) && '' !== $value 739 && 'ai_provider' === $connector_data['type'] 740 ) { 737 741 if ( true !== _wp_connectors_is_ai_api_key_valid( $value, $connector_id ) ) { 738 742 update_option( $setting_name, '' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)