[wp-trac] [WordPress Trac] #31798: Editor: switch undo and redo in RTL

WordPress Trac noreply at wordpress.org
Fri Jun 27 16:32:04 UTC 2025


#31798: Editor: switch undo and redo in RTL
-------------------------------------+-----------------------------
 Reporter:  yoavf                    |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  low                      |   Milestone:  Future Release
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-test-info  |     Focuses:  rtl
-------------------------------------+-----------------------------
Changes (by SirLouen):

 * keywords:  has-patch needs-testing => has-patch has-test-info


Comment:

 == Test Report
 === Description
 ✅ This report validates that the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-
 develop/pull/9098.diff

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-One 2.5
 - MU Plugins: None activated
 - Plugins:
   * Classic Editor 1.6.7
   * Test Reports 1.2.0
   * Press This 1.1.2

 === Testing Instructions
 1. This can be tested either with Classic Editor or with the Press This
 Editor, install any of these two
 2. Switch to an RTL language like العربية
 3. Now open the editor, whichever you have installed
 4. 🐞 The undo and redo buttons are reversed

 === Additional Notes
 -  Despite this is affecting unsupported components, this is something
 defined in Gruntfile which could affect any related component in the
 future. The solution by @ocean90 was adding the `f171` and `f172` (undo
 and redo). Also with the map alternative is way WETter not having to add
 conditionals for both directions.

 - This is a nice little patch that could be great for RTL users, despite
 it is aiming for slightly old components.

 === Actual Results
 - ✅ Issue resolved with patch.

 ==== Supplemental Artifacts
 Before patch:
 [[Image(https://i.imgur.com/or1nFPr.png)]]
 [[Image(https://i.imgur.com/GyyDdpr.png)]]

 ==== After patch:
 [[Image(https://i.imgur.com/3lEg00z.png)]]
 [[Image(https://i.imgur.com/HJvOqq8.png)]]

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


More information about the wp-trac mailing list