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

WordPress Trac noreply at wordpress.org
Sun Mar 4 08:22:08 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          |   Keywords:  good-first-bug
  Focuses:                  |
----------------------------+-----------------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list