Connectors: Respect custom setting_name in connector registration.
`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. Built from https://develop.svn.wordpress.org/trunk@62116 git-svn-id: http://core.svn.wordpress.org/trunk@61398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-RC1-62115';
|
||||
$wp_version = '7.0-RC1-62116';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user