[wp-meta] [Making WordPress.org] #757: RTL plugin banners
Making WordPress.org
noreply at wordpress.org
Tue Oct 27 20:38:37 UTC 2015
#757: RTL plugin banners
--------------------------+------------------------------
Reporter: johnbillion | Owner: Otto42
Type: enhancement | Status: accepted
Priority: normal | Component: Plugin Directory
Resolution: | Keywords: ux-feedback
--------------------------+------------------------------
Comment (by ramiy):
Replying to [comment:25 Otto42]:
> But the second part is not easy to implement. That's both a change to
the API and to the core code.
I think it can be done by changing only the API, without changing the core
code.
The `plugins_api()` function accepts `$locale` parameter. You can check on
[http://api.wordpress.org/plugins/info/1.0/ api.wordpress.org], if the
local is RTL. If it's an RTL local, return the RTL banner (if it exists),
else return the regular banner.
It should be done for both low and high resolution banners.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/757#comment:26>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list