[wp-trac] [WordPress Trac] #55081: WordPress wp_get_document_title() does not do RTL.

WordPress Trac noreply at wordpress.org
Sat Feb 5 01:32:08 UTC 2022


#55081: WordPress wp_get_document_title() does not do RTL.
--------------------------+------------------------------
 Reporter:  jsmoriss      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rtl
--------------------------+------------------------------

Comment (by jsmoriss):

 There seems to be some confusion as to the difference between:

 1) An associative array in PHP and how associative arrays are imploded -
 which behaves the same regardless of the RTL/LTR language. PHP does not
 magically reorder every single associative array because the language is
 RTL - imagine the chaos of that, lol. :)

 2) The translated text of each element within an associative array.

 I am trying out outline that #2 may be fine - each element in the array
 may be translated to an RTL language - but that #1 is not affected by the
 language - the order of the associative array remains the same.

 So, in an RTL language, as the current WordPress wp_get_document_title()
 function operates, the post name will be left and the site name on the
 right, regardless of LTR/RTL. I opened this ticket to highlight the fact
 that the array needs to be reordered for RLT before imploding the
 elements.

 js.

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


More information about the wp-trac mailing list