[wp-trac] [WordPress Trac] #23772: Twenty Ten/Eleven: Use callback to enqueue scripts and styles
WordPress Trac
noreply at wordpress.org
Thu Mar 14 18:27:53 UTC 2013
#23772: Twenty Ten/Eleven: Use callback to enqueue scripts and styles
-----------------------------+-------------------------
Reporter: obenland | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: has-patch |
-----------------------------+-------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23772>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list