[wp-trac] [WordPress Trac] #64819: Revisit AI provider API key masking & validation
WordPress Trac
noreply at wordpress.org
Sun Mar 8 18:06:00 UTC 2026
#64819: Revisit AI provider API key masking & validation
--------------------------+---------------------
Reporter: swissspidy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0
Component: AI | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by swissspidy):
Posting what I shared on Slack already, this is what happens due to all
this custom logic in place:
{{{
$ wp option update connectors_ai_google_api_key <VALIDKEY>
Success: Updated 'connectors_ai_google_api_key' option. # So far so good
$ wp option update connectors_ai_google_api_key <SAMEKEY>
Error: Could not update option 'connectors_ai_google_api_key'. # Here you
would expect "Success: Value passed for 'connectors_ai_google_api_key'
option is unchanged."
$ wp option update connectors_ai_google_api_key ""
Success: Value passed for 'connectors_ai_google_api_key' option is
unchanged. # Nothing actually changed
$ wp option get connectors_ai_google_api_key
<masked key>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64819#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list