[theme-reviewers] Inline Scripts

Justin Tadlock justin at justintadlock.com
Wed Aug 29 01:45:06 UTC 2012


Yes, inline scripts and styles are allowed.  Sometimes, they're actually 
needed or a better way to handle something.

On 8/28/2012 8:33 PM, Vicky Arulsingam wrote:
> 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
>
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120828/3231b6b3/attachment.htm>


More information about the theme-reviewers mailing list