Make WordPress Core

Changeset 62308


Ignore:
Timestamp:
05/06/2026 07:54:48 PM (5 weeks ago)
Author:
desrosj
Message:

Connectors: Partial backport of [62210].

This merges the modifications from [62210] that were not directly reverting the changes in [62193] to the 7.0 branch.

While [62193] never made its way into the 7.0 branch, these changes are needed to ensure backports touching these lines are able to complete without merge conflicts.

Reviewed by desrosj.
Partially merges [62210] to the 7.0 branch.

Props peterwilsoncc, jorgefilipecosta, johnbillion, eclev91, desrosj, davidbaumwald, jorbin.
See #65012.

Location:
branches/7.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0

  • branches/7.0/src/wp-includes/class-wp-connector-registry.php

    r62195 r62308  
    7272     * explicitly. If omitted, one is automatically generated using the pattern
    7373     * `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` produces
    75      * `connectors_spam_filtering_akismet_api_key`). This setting name is used for the
     74     * 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
    7676     * Settings API registration and REST API exposure.
    7777     *
     
    111111     *
    112112     *         @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').
    114114     *     }
    115115     * }
  • branches/7.0/src/wp-includes/connectors.php

    r62306 r62308  
    6060 *
    6161 *         @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').
    6363 *     }
    6464 * }
     
    121121 *
    122122 *             @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').
    124124 *         }
    125125 *     }
     
    399399 * @access private
    400400 *
    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').
    404404 * @return string The key source: 'env', 'constant', 'database', or 'none'.
    405405 */
Note: See TracChangeset for help on using the changeset viewer.