Correct.<br><br><div class="gmail_quote">On Tue, Aug 28, 2012 at 9:20 PM, Chandra Maharzan <span dir="ltr"><<a href="mailto:maharzan@gmail.com" target="_blank">maharzan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see people are using wp_enqueue_script ( 'jquery' ); in header.php,<br>
similarly to comments-reply. Shouldn't these be coming from<br>
functions.php and hooked to appropriate hook ?<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 29, 2012 at 7:30 AM, Justin Tadlock<br>
<<a href="mailto:justin@justintadlock.com">justin@justintadlock.com</a>> wrote:<br>
> Yes, inline scripts and styles are allowed. Sometimes, they're actually<br>
> needed or a better way to handle something.<br>
><br>
><br>
> On 8/28/2012 8:33 PM, Vicky Arulsingam wrote:<br>
><br>
> Are theme developers allowed to include inline scripts in template files?<br>
><br>
> As per Code:<br>
><br>
> Themes are required to enqueue all stylesheets and scripts, using<br>
> wp_enqueue_style()/wp_enqueue_script(), and hooked into an appropriate hook<br>
> via callback function, rather than hard-coding stylesheet/script links or<br>
> tags in the template.<br>
><br>
><br>
> My understanding of this is that inline scripts should not be hard-coded in<br>
> template files.<br>
><br>
> This is with regards to this ticket:<br>
> <a href="http://themes.trac.wordpress.org/ticket/9227" target="_blank">http://themes.trac.wordpress.org/ticket/9227</a><br>
><br>
> -----<br>
> Vicky Arulsingam<br>
><br>
><br>
><br>
> _______________________________________________<br>
> theme-reviewers mailing list<br>
> <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> theme-reviewers mailing list<br>
> <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
cmans<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br>