Commit 7529b4d
committed
WP.EnqueuedResources: bug fix
Identified by joyously in the ThemeReviewCS repo: WPTRT/WPThemeReview 202
When inline JQuery is used to reference a stylesheet link tag, the sniff misidentifies this as a stylesheet which needs to be enqueued.
This very simple fix should prevent that, at least for the reported cases.
Includes unit test.1 parent e41ea6a commit 7529b4d
File tree
2 files changed
+7
-1
lines changed- WordPress
- Sniffs/WP
- Tests/WP
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments