Fix: Redundant API requests for providers on settings page when multiple features share the same capability#542
Conversation
|
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 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #542 +/- ##
==========================================
Coverage 70.72% 70.72%
Complexity 1144 1144
==========================================
Files 67 67
Lines 5510 5510
==========================================
Hits 3897 3897
Misses 1613 1613
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ultiple requests (WordPress#542) Fixed - Deduplicate provider API requests on the settings page when developer mode is toggled on. Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org> Co-authored-by: dkotter <dkotter@git.wordpress.org>

What?
Closes #541
Why?
How?
Use of AI Tools
AI assistance: Yes
Tool(s): GitHub Copilot, Claude
Model(s): Opus 4.6
Used for: Providing suggestion on improvement based on issue. Reviwed the code generated manually and then raised the PR.
Testing Instructions
options-general.php?page=ai-wp-admin, Enable model selection.text_generation, vision, image_generation, instead of individual request for each features.Screenshots or screencast
Screen.Recording.2026-05-13.at.3.57.15.PM.mov
Changelog Entry