Sergey Biryukov
d145c50e14
Editor: Correctly load RTL stylesheets in register_block_style_handle().
...
When setting an RTL language under Settings → General, some RTL stylesheets were not loaded, with LTR stylesheets being loaded instead, meaning that some blocks were not displayed correctly.
This commit ensures that all appropriate RTL stylesheets are loaded when selecting an RTL language.
Additionally, this commit improves performance by only running a `file_exists()` check for an RTL stylesheet if `is_rtl()` returns true, i.e. an RTL locale is selected.
Follow-up to [49982], [50836].
Props zoonini, sabernhardt, maahrokh, ankit-k-gupta, aristath, poena, SergeyBiryukov.
See #56325 .
git-svn-id: https://develop.svn.wordpress.org/trunk@54330 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-27 15:41:15 +00:00
..
2022-09-23 19:53:14 +00:00
2022-04-12 09:24:51 +00:00
2022-09-26 14:56:41 +00:00
2022-09-21 20:55:20 +00:00
2021-10-03 17:50:01 +00:00
2022-09-20 04:00:35 +00:00
2022-09-12 15:45:36 +00:00
2021-11-26 03:04:10 +00:00
2021-11-16 00:02:29 +00:00
2022-04-06 15:18:08 +00:00
2022-08-22 12:24:30 +00:00
2022-09-26 20:54:44 +00:00
2022-02-16 21:17:04 +00:00
2021-12-06 21:29:00 +00:00
2022-09-26 21:44:40 +00:00
2021-12-20 19:31:37 +00:00
2022-09-12 15:45:36 +00:00
2022-09-26 13:58:53 +00:00
2022-09-14 12:46:33 +00:00
2022-03-22 16:23:32 +00:00
2022-03-22 16:23:32 +00:00
2022-09-26 22:41:11 +00:00
2022-08-13 22:42:12 +00:00
2022-04-21 11:22:45 +00:00
2022-09-20 16:24:56 +00:00
2022-09-23 13:58:19 +00:00
2021-08-11 09:06:31 +00:00
2022-09-20 16:27:44 +00:00
2022-09-21 15:43:39 +00:00
2022-09-26 22:41:11 +00:00
2022-09-27 15:41:15 +00:00
2022-06-23 22:55:41 +00:00
2022-08-30 15:14:04 +00:00
2022-07-23 14:56:51 +00:00
2022-07-23 14:56:51 +00:00
2022-04-01 03:23:07 +00:00
2022-09-20 15:18:34 +00:00
2022-08-19 23:04:04 +00:00
2022-08-04 14:50:27 +00:00
2022-06-17 11:18:37 +00:00
2022-08-31 13:39:33 +00:00
2022-06-17 11:18:37 +00:00
2021-12-06 21:29:00 +00:00
2021-12-24 18:04:10 +00:00
2022-01-30 19:23:25 +00:00
2022-01-30 19:23:25 +00:00
2022-01-30 19:23:25 +00:00
2022-09-15 12:30:54 +00:00
2022-05-01 21:59:49 +00:00
2022-01-30 19:23:25 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-20 15:14:54 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-19 19:49:47 +00:00
2022-09-14 10:50:26 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 21:48:59 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-20 14:15:25 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-26 22:41:11 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2021-12-06 21:29:00 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-19 22:51:53 +00:00
2022-09-19 22:51:53 +00:00
2022-09-20 16:57:15 +00:00
2022-09-12 15:45:36 +00:00
2022-09-26 22:08:29 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-20 14:24:08 +00:00
2022-09-26 22:08:29 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-26 22:08:29 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-20 11:55:21 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-26 22:08:29 +00:00
2022-09-12 15:45:36 +00:00
2022-09-19 20:47:22 +00:00
2022-09-20 14:15:25 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-20 14:15:25 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-20 13:10:28 +00:00
2022-09-23 21:29:52 +00:00
2022-09-12 15:45:36 +00:00
2022-09-26 10:15:17 +00:00
2022-09-20 01:34:49 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-12 15:45:36 +00:00
2022-09-27 02:16:28 +00:00
2022-09-20 13:10:24 +00:00
2022-09-20 02:49:25 +00:00
2022-09-20 14:15:25 +00:00
2022-09-20 14:15:25 +00:00
2022-09-20 14:15:25 +00:00
2022-09-12 17:50:36 +00:00
2022-08-26 01:01:23 +00:00
2022-05-08 00:27:41 +00:00
2022-09-20 20:30:03 +00:00
2022-06-17 11:18:37 +00:00
2022-09-20 01:34:49 +00:00
2022-09-21 15:04:16 +00:00
2022-09-21 19:46:40 +00:00
2022-06-17 11:18:37 +00:00
2022-08-19 22:05:00 +00:00
2022-04-29 19:15:57 +00:00
2021-11-29 09:50:13 +00:00
2022-06-20 21:44:27 +00:00
2022-09-20 14:15:25 +00:00
2022-09-26 13:05:30 +00:00
2022-04-04 18:24:18 +00:00
2021-11-19 15:12:25 +00:00
2022-09-22 09:24:17 +00:00
2022-09-14 18:42:04 +00:00
2022-09-14 13:06:53 +00:00
2022-08-11 14:09:04 +00:00
2022-09-15 13:27:38 +00:00
2022-09-19 19:49:47 +00:00
2022-09-13 18:03:30 +00:00
2022-09-20 15:18:34 +00:00
2022-09-20 04:00:35 +00:00
2022-09-26 22:41:11 +00:00
2022-08-11 14:01:35 +00:00
2022-09-06 11:26:45 +00:00
2022-07-14 13:33:12 +00:00
2022-09-20 02:49:25 +00:00
2022-09-21 19:46:40 +00:00
2021-07-06 20:20:51 +00:00
2022-09-20 02:49:25 +00:00
2022-05-13 12:19:35 +00:00
2022-09-06 11:26:45 +00:00
2022-08-26 01:01:23 +00:00
2022-02-07 13:59:19 +00:00
2022-06-15 13:35:28 +00:00
2022-09-20 20:30:03 +00:00
2022-09-21 20:22:53 +00:00
2022-08-01 11:13:13 +00:00
2022-09-21 20:22:53 +00:00
2022-03-15 15:20:12 +00:00
2022-09-27 01:58:43 +00:00
2022-06-21 13:32:48 +00:00
2022-08-11 14:01:35 +00:00
2022-08-11 14:01:35 +00:00
2022-08-07 23:03:57 +00:00
2022-04-06 15:31:23 +00:00
2022-03-22 16:23:32 +00:00
2022-09-23 08:25:45 +00:00
2022-09-26 22:41:11 +00:00
2022-09-14 12:46:33 +00:00
2022-09-20 18:51:49 +00:00
2021-12-10 20:28:27 +00:00
2022-09-21 01:07:52 +00:00
2022-09-21 11:41:44 +00:00
2022-05-02 13:11:07 +00:00
2022-09-14 18:42:04 +00:00
2022-09-15 12:18:30 +00:00
2022-09-22 11:11:45 +00:00
2022-09-27 15:21:48 +00:00
2022-04-27 13:45:57 +00:00
2022-09-21 17:01:03 +00:00
2022-06-01 18:12:25 +00:00
2022-07-21 22:43:24 +00:00