Opened 2 years ago
Closed 8 months ago
#16852 closed enhancement (fixed)
Don't output redundant dir="ltr" with language_attributes()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | RTL | Version: | 3.1 |
| Severity: | trivial | Keywords: | has-patch commit |
| Cc: | linuxologos@… |
Description
language_attributes() outputs dir="ltr" when is_rtl() returns false, but declaring the text direction as left-to-right is redundant.
Patch only outputs the dir attribute when the direction is right-to-left.
Attachments (3)
Change History (9)
- Summary changed from [PATCH] Don't output redundant dir="ltr" with language_attributes() to Don't output redundant dir="ltr" with language_attributes()
comment:2
linuxologos — 2 years ago
- Cc linuxologos@… added
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to 3.5
I think the function_exists is still needed. See [14360].
Note: See
TracTickets for help on using
tickets.

Please use tabs, not spaces: http://codex.wordpress.org/WordPress_Coding_Standards