Content Classification: Dynamicize taxonomy error messages - #916
Conversation
…abel helper method
|
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❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #916 +/- ##
=============================================
+ Coverage 74.42% 74.52% +0.10%
- Complexity 3116 3124 +8
=============================================
Files 132 132
Lines 12179 12193 +14
=============================================
+ Hits 9064 9087 +23
+ Misses 3115 3106 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…e conversion in content classification logic
…e have late escaping to make it clear things are escaped
What?
This PR updates the error and notice messages in the
Content_Classificationability to dynamically display the specific taxonomy label (e.g., "category" or "tag") rather than generic hardcoded "taxonomy" terminology.Why?
When users interacted with specific taxonomy panels (such as "Suggest Categories" under the Categories sidebar panel), error notices displayed generic phrasing like "No taxonomy suggestions were generated." or "You do not have permission to generate taxonomy suggestions." This caused confusion as users were explicitly generating suggestions for categories.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 4.6
Used for: Validating bug, suggesting a fix.
Testing Instructions
"Content is required to generate category suggestions."or"No category suggestions were generated."(instead of generic"No taxonomy suggestions were generated.").Screenshots or screencast
Before
Screen.Recording.2026-08-05.at.1.30.25.PM.mov
After
Screen.Recording.2026-08-05.at.1.29.48.PM.mov
Changelog Entry