Changeset 62308
- Timestamp:
- 05/06/2026 07:54:48 PM (5 weeks ago)
- Location:
- branches/7.0
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-connector-registry.php (modified) (2 diffs)
-
src/wp-includes/connectors.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/7.0
-
branches/7.0/src/wp-includes/class-wp-connector-registry.php
r62195 r62308 72 72 * explicitly. If omitted, one is automatically generated using the pattern 73 73 * `connectors_{$type}_{$id}_api_key`, with hyphens in the type and ID normalized 74 * to underscores (e.g., connector type `spam_filtering` with ID ` akismet` produces75 * `connectors_spam_filtering_ akismet_api_key`). This setting name is used for the74 * to underscores (e.g., connector type `spam_filtering` with ID `my_plugin` produces 75 * `connectors_spam_filtering_my_plugin_api_key`). This setting name is used for the 76 76 * Settings API registration and REST API exposure. 77 77 * … … 111 111 * 112 112 * @type string $file The plugin's main file path relative to the plugins 113 * directory (e.g. ' akismet/akismet.php' or 'hello.php').113 * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php'). 114 114 * } 115 115 * } -
branches/7.0/src/wp-includes/connectors.php
r62306 r62308 60 60 * 61 61 * @type string $file The plugin's main file path relative to the plugins 62 * directory (e.g. ' akismet/akismet.php' or 'hello.php').62 * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php'). 63 63 * } 64 64 * } … … 121 121 * 122 122 * @type string $file The plugin's main file path relative to the plugins 123 * directory (e.g. ' akismet/akismet.php' or 'hello.php').123 * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php'). 124 124 * } 125 125 * } … … 399 399 * @access private 400 400 * 401 * @param string $setting_name The option name for the API key (e.g., 'connectors_spam_filtering_ akismet_api_key').402 * @param string $env_var_name Optional. Environment variable name to check (e.g., ' AKISMET_API_KEY').403 * @param string $constant_name Optional. PHP constant name to check (e.g., ' AKISMET_API_KEY').401 * @param string $setting_name The option name for the API key (e.g., 'connectors_spam_filtering_my_plugin_api_key'). 402 * @param string $env_var_name Optional. Environment variable name to check (e.g., 'MY_PLUGIN_API_KEY'). 403 * @param string $constant_name Optional. PHP constant name to check (e.g., 'MY_PLUGIN_API_KEY'). 404 404 * @return string The key source: 'env', 'constant', 'database', or 'none'. 405 405 */
Note: See TracChangeset
for help on using the changeset viewer.