<div dir="ltr"><div>I would strongly lean towards REQUIRED ... mostly for consistency when and where scripts are enqueued.<br><br></div>Other than that I would say RECOMMENDED as a best practice ideal at a minimum.<br></div>

<div class="gmail_extra"><br clear="all"><div>Edward Caissie<br>aka Cais.</div>
<br><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 1:02 PM, Chip Bennett <span dir="ltr"><<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Agree, but it's added as a callback to wp_footer() - so is it a *recommended* or *required* aspect that it be enqueued via wp_enqueue_script()?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">

<br><br><div class="gmail_quote">
On Sat, Aug 3, 2013 at 12:03 PM, Edward Caissie <span dir="ltr"><<a href="mailto:edward.caissie@gmail.com" target="_blank">edward.caissie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">That script can, and more importantly *should* be enqueued.<br></div><div class="gmail_extra"><br clear="all"><div>Edward Caissie<br>aka Cais.</div>
<br><br><div class="gmail_quote"><div><div>On Sat, Aug 3, 2013 at 11:54 AM, Harish <span dir="ltr"><<a href="mailto:me@harishchouhan.com" target="_blank">me@harishchouhan.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<div link="#0563C1" vlink="#954F72" lang="EN-IN"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal">




<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have seen many premium themes doing this. Not a good practise so I would not recommend it. <u></u><u></u></span></p>




<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>




<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#404040"><u></u> <u></u></span></p><p class="MsoNormal" style="line-height:150%"><span style="font-size:11.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#404040">Regards,<u></u><u></u></span></p>




<p class="MsoNormal" style="line-height:150%"><span style="font-size:11.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#404040">Harish Chouhan<u></u><u></u></span></p><p class="MsoNormal" style="line-height:150%">




<span style="font-size:10.0pt;line-height:150%;font-family:"Arial","sans-serif";color:#404040"><u></u> <u></u></span></p><p class="MsoNormal" style="line-height:150%"><b><span style="font-size:11.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#0d0d0d">Visit me at </span></b><span style="font-size:16.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#0d0d0d">- </span><span style="font-size:11.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.harishchouhan.com/" target="_blank"><span style="font-size:10.0pt;line-height:150%;color:black">www.harishchouhan.com</span></a></span><span style="font-size:10.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#0d0d0d"> </span><span style="font-size:16.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#0d0d0d"><br>




</span><span style="font-size:10.0pt;line-height:150%;font-family:"Calibri","sans-serif";color:#0d0d0d">Phone: <a href="tel:%2B91-9833661410" value="+919833661410" target="_blank">+91-9833661410</a> | Email: <a href="mailto:me@harishchouhan.com" target="_blank"><span style="color:black">me@harishchouhan.com</span></a> <b><u></u><u></u></b></span></p>




<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="EN-US"> theme-reviewers [mailto:<a href="mailto:theme-reviewers-bounces@lists.wordpress.org" target="_blank">theme-reviewers-bounces@lists.wordpress.org</a>] <b>On Behalf Of </b>Ola Laczek<br>




<b>Sent:</b> Sat 03 August 13 09:16 PM<br><b>To:</b> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><b>Subject:</b> [theme-reviewers] Printing JavaScript in footer<u></u><u></u></span></p>




<div><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hello!<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I'm reviewing a theme that prints javascript in the footer from functions.php like this:<u></u><u></u></p>




</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><div><p class="MsoNormal"><span style="font-family:"Courier New"">add_action('wp_footer', 'flex_init');</span><u></u><u></u></p>




</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">function flex_init() {</span><u></u><u></u></p></div><div><p class="MsoNormal"><span><span style="font-family:"Courier New"">     </span></span><span style="font-family:"Courier New"">echo '<script type="text/javascript"></span><u></u><u></u></p>




</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    <span> </span>jQuery(document).ready(function() {</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">        jQuery("#slider").flexslider();</span><u></u><u></u></p>




</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">   <span>  </span> });</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">   <span>  </span></script>';</span><u></u><u></u></p>




</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">}</span><u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Is this ok, or should I tell this person to create separate javascript file, put this code there and enqueue like other scripts?</span><u></u><u></u></p>




</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Best regards,<br>Ola Łączek<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div>




</div></div></div></div></div><br></div></div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></blockquote></div><br></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></blockquote></div><br></div>
</div></div><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></blockquote></div><br></div>