[wp-trac] [WordPress Trac] #43466: Add ltr admin body class

WordPress Trac noreply at wordpress.org
Sun Mar 4 08:22:48 UTC 2018


#43466: Add ltr admin body class
----------------------------+------------------------------
 Reporter:  birgire         |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  low             |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  good-first-bug  |     Focuses:
----------------------------+------------------------------
Description changed by birgire:

Old description:

> In {{{wp-admin/admin-header.php}}} we have:
>
> {{{
> if ( is_rtl() ) {
>         $admin_body_class .= ' rtl';
> }
>
> }}}
>
> added in [18125].
>
> But I wonder if we should have both classes available:
>
> {{{
> $admin_body_class .= is_rtl() ? 'rtl' : 'ltr';
>
> }}}
>
> e.g. to help CSS or JS selectors target {{{ltr}}} only.

New description:

 In {{{wp-admin/admin-header.php}}} we have:

 {{{
 if ( is_rtl() ) {
         $admin_body_class .= ' rtl';
 }

 }}}

 added in [18125].

 But I wonder if we should have both classes available:

 {{{
 $admin_body_class .= is_rtl() ? ' rtl' : ' ltr';

 }}}

 e.g. to help CSS or JS selectors target {{{ltr}}} only.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43466#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list