Repository navigation
Commit a8d146e
Only print the expect link once the View Transitions style is printed.
Checking that the `wp-view-transitions-admin` style is `done` rather
than merely enqueued ties the link to the CSS actually having been
output in the head. If the style is enqueued too late, it is printed in
the footer, and there is no transition at first render to wait for.
Since the style is now only enqueued from admin-header.php, this check
also leaves out iframe screens, so the `IFRAME_REQUEST` check is
removed. It missed iframe screens that do not define that constant,
such as the theme-information modal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 2ba00cf commit a8d146e
2 files changed
Lines changed: 15 additions & 11 deletions
File tree
- src/wp-includes
- tests/phpunit/tests/view-transitions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
76 | 79 | | |
77 | | - | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
0 commit comments