Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#19060 closed defect (bug) (duplicate)

admin CSS: .code, code should have direction:ltr (for rtl installations)

Reported by: panuy Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2.1
Component: RTL Keywords: has-patch
Focuses: Cc:


selectors .code, code indicate code, which is 100% of the times english text that must be aligned to the left, and have left-to-right directionality.

if the administration panel is in RTL mode, the code textboxes are reversed, and it is nearly impossible to edit them.

the suggested code will not affect LTR installations.

suggested fix at wp-admin-rtl.dev.css file:

.code, code {

direction: ltr;


Attachments (1)

19060.patch (285 bytes) - added by ramiy 3 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 @ocean903 years ago

  • Keywords rtl-feedback needs-patch added; has-patch needs-testing removed

comment:2 @ramiy3 years ago

I agree, this is a very good idea. <code> tag has no rtl text, so it has to have left-to-right direction.

comment:3 @ramiy3 years ago

Related: #18021

comment:4 @nacin3 years ago

  • Keywords rtl-feedback removed


@ramiy3 years ago

comment:5 @ramiy3 years ago

  • Keywords has-patch added; needs-patch removed

comment:6 @ramiy3 years ago

see also - #16834

comment:7 @azaozz3 years ago

So, what's the best way for here: unicode-bidi: override; or direction: ltr;?

comment:9 @nacin3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #19598.

Note: See TracTickets for help on using tickets.