Commit 37456c9
committed
Script Loader: Check if
This aims to avoid PHP warnings if the `colors` dependency is loaded or the `style_loader_src` filter is used in a context where the `$_wp_admin_css_colors` global does not exist.
Follow-up to [7976].
Props crstauf, petitphp, SergeyBiryukov.
Fixes #61302.
git-svn-id: https://develop.svn.wordpress.org/trunk@61388 602fd350-edb4-49c9-b593-d223f7449a82$_wp_admin_css_colors is set in wp_style_loader_src().1 parent 2ae6561 commit 37456c9
File tree
2 files changed
+28
-2
lines changed- src/wp-includes
- tests/phpunit/tests/dependencies
2 files changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2090 | 2090 | | |
2091 | 2091 | | |
2092 | 2092 | | |
2093 | | - | |
2094 | | - | |
| 2093 | + | |
| 2094 | + | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | 2097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments