#23772 closed enhancement (fixed)
Twenty Ten/Eleven: Use callback to enqueue scripts and styles
Reported by: | obenland | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
The theme review guidelines require themes to enqueue all stylesheets and scripts, using wp_enqueue_style()/wp_enqueue_script(), and hooked into an appropriate hook via callback function, rather than hard-coding stylesheet/script links or tags in the template.
There might be a backwards compatibility issue when rogue scripts are hooked to 'wp_head'
on 0 priority.
Attachments (2)
Change History (10)
#4
@
12 years ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In 23721:
#5
@
12 years ago
Another case of bad news bears, like #23774.
This change isn't backward compatible with child themes, so we need to revert for both Ten and Eleven.
This ticket was mentioned in Slack in #themereview by kjell. View the logs.
5 years ago
Note: See
TracTickets for help on using
tickets.
In 23720: