Fix docblock to reflect POST and PUT support in API key validation#76348
Conversation
Co-authored-by: gziolo <699132+gziolo@users.noreply.github.com>
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
1 similar comment
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @Copilot. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
5fc0290
into
refactor/connectors-rest-level-validation-masking
…76348) * Initial plan * Fix docblock to mention both POST and PUT methods for API key validation Co-authored-by: gziolo <699132+gziolo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gziolo <699132+gziolo@users.noreply.github.com>
The docblock for
_gutenberg_connectors_rest_settings_dispatch()stated validation runs on "POST requests", but the implementation checks for bothPOSTandPUTmethods.Changes
lib/experimental/connectors/default-connectors.php: Updated the docblock to read "On POST or PUT requests" to match the actual$is_updatecondition:✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.