Force LTR for ability schema JSON viewer#485
Conversation
JSON output should always render left-to-right regardless of the admin language. Adds rtl:ignore so RTLCSS preserves the LTR direction in the generated -rtl.css.
|
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 #485 +/- ##
==========================================
Coverage 69.06% 69.06%
Complexity 957 957
==========================================
Files 60 60
Lines 4512 4512
==========================================
Hits 3116 3116
Misses 1396 1396
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:
|
Part of #483
What?
Force LTR direction on the ability schema JSON viewer in the Abilities Explorer.
Why?
JSON output is structurally LTR and should not be flipped when the admin language is RTL.
How?
Add
direction: ltr;to.ability-schema-displaywith an/*rtl:ignore*/directive so RTLCSS preserves it in the generated-rtl.css.Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 4.7
Used for: Diagnosing the malformed
rtl:ignorecomment and applying the fix.Testing Instructions
Changelog Entry