Commit e2cf039
committed
Connectors: Respect custom
`WP_Connector_Registry::register()` always auto-generates the `setting_name`
for connectors with `api_key` authentication, ignoring any caller-provided
value. This prevents connectors from using existing WordPress options as their
API key storage.
This change checks for a non-empty `setting_name` in the provided args before
falling back to the auto-generated name.
Props jorgefilipecosta, gziolo.
Fixes #64957.
git-svn-id: https://develop.svn.wordpress.org/trunk@62116 602fd350-edb4-49c9-b593-d223f7449a82setting_name in connector registration.1 parent 4d3b0b9 commit e2cf039
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
0 commit comments