Commit 3155a43
authored
Add tests for LTR stylesheet handling in wp_register_style() and wp_print_styles().
Implements comprehensive PHPUnit tests for verifying LTR stylesheet support.
These tests cover:
- Proper registration of LTR data using `wp_style_add_data()`.
- Behavior differences between LTR and RTL locales.
- Ensuring that LTR variants are correctly printed in HTML output via `wp_print_styles()`.
- Verification of stylesheet order to confirm that the LTR stylesheet appears after its main counterpart.
Includes handling for the deprecation of `print_emoji_styles` to ensure compatibility with WordPress 6.4+.
Props asadister.
See [#64193](https://core.trac.wordpress.org/ticket/64193).1 parent 86bd358 commit 3155a43
1 file changed
+8
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 10 | + | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
| |||
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
58 | | - | |
| 50 | + | |
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
| |||
65 | 57 | | |
66 | 58 | | |
67 | 59 | | |
68 | | - | |
69 | 60 | | |
70 | | - | |
| 61 | + | |
71 | 62 | | |
72 | 63 | | |
73 | 64 | | |
74 | | - | |
75 | 65 | | |
76 | 66 | | |
| 67 | + | |
| 68 | + | |
77 | 69 | | |
78 | 70 | | |
79 | 71 | | |
| |||
99 | 91 | | |
100 | 92 | | |
101 | 93 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
105 | 97 | | |
106 | 98 | | |
0 commit comments