[wp-trac] [WordPress Trac] #52441: Fix wp.i18n.isRTL() returning false in RTL languages

WordPress Trac noreply at wordpress.org
Mon Feb 8 23:49:47 UTC 2021


#52441: Fix wp.i18n.isRTL() returning false in RTL languages
---------------------------------------------+-------------------------
 Reporter:  noisysocks                       |       Owner:  noisysocks
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.7
Component:  I18N                             |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by noisysocks):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50259" 50259]:
 {{{
 #!CommitTicketReference repository="" revision="50259"
 Fix wp.i18n.isRTL()

 Fixes a bug causing wp.i18n.isRTL() to return false in RTL langauges by
 manually
 loading the translated 'ltr' string for the i18n dependency. This ports
 over an
 identical fix that was made in Gutenberg.

 Fixes #52441.
 Props @jonsurrell @youknowriad.
 }}}

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


More information about the wp-trac mailing list