[wp-trac] [WordPress Trac] #33390: Adding lang field in wp_posts table
WordPress Trac
noreply at wordpress.org
Mon Aug 17 13:48:50 UTC 2015
#33390: Adding lang field in wp_posts table
-----------------------------+-----------------------------
Reporter: anasr | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Suppose that you have an English blog, and you want to publish a new post
in a different language, say Arabic for example. In this case you need to
set the `lang` attribute to Arabic, like this:
{{{
<article lang="ar">
}}}
... since the `html` tag originally says:
{{{
<html lang="en">
}}}
Currently, how could you do that?
The only way —I guess— is to enclose the post-content in a `div`, like
this:
{{{
<div lang="ar">
...
</div>
}}}
Whilst, this `lang` attribute should be assigned to `article` tag.
Notice also the language of `article > header` contents still defined as
English.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33390>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list