[theme-reviewers] Inline Scripts

Vicky Arulsingam vicky.arulsingam at gmail.com
Wed Aug 29 01:33:14 UTC 2012


Are theme developers allowed to include inline scripts in template files?

As per Code:

Themes are *required* to enqueue all stylesheets and scripts, using
wp_enqueue_style()<http://codex.wordpress.org/Function_Reference/wp_enqueue_style>
/wp_enqueue_script()<http://codex.wordpress.org/Function_Reference/wp_enqueue_script>,
and hooked into an appropriate hook via callback function, rather than
hard-coding stylesheet/script links or tags in the template.


My understanding of this is that inline scripts should not be hard-coded in
template files.

This is with regards to this ticket:
http://themes.trac.wordpress.org/ticket/9227

-----
Vicky Arulsingam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120829/487093ea/attachment.htm>


More information about the theme-reviewers mailing list