[wp-trac] [WordPress Trac] #48996: Add lang attribute to the content in the backend
WordPress Trac
noreply at wordpress.org
Mon Dec 16 09:08:21 UTC 2019
#48996: Add lang attribute to the content in the backend
---------------------------+-----------------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 4.7
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
Since WordPress 4.7, it is possible for a user to display the backend in a
language different than the current site's language. In this case, the
html 'lang' attribute is set to the user's language. I am not an
accessibility expert but I expect that this causes an issue for screen
readers as the site's content will be read with a wrong language.
Also I am not sure if this is an issue to often switch the language of a
screen reader.
Anyway, I propose to add a 'lang' attribute to all the html tags
displaying content. This 'lang' attribute must be filterable for
multilingual plugins being able to select the correct language for each
content.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48996>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list