<p dir="ltr">Not required.</p>
<div class="gmail_quote">On Jun 25, 2014 4:20 AM, "Anders Norén" <<a href="mailto:anders@andersnoren.se">anders@andersnoren.se</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it required, though? Prayas is referring to my theme, Baskerville: <a href="https://themes.trac.wordpress.org/ticket/19154" target="_blank">https://themes.trac.wordpress.<u></u>org/ticket/19154</a>. I use both wp_register_script() and wp_enqueue_script() because I think it improves the readability of functions.php.<br>
<br>
Anders<br>
<br>
On 25 Jun 2014, at 11:13, nithin kr wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If wp_register_script() and wp_enqueue_script() are used in the same<br>
context/function, then its better to omit wp_register_script().<br>
<br>
<br>
On Wed, Jun 25, 2014 at 1:46 PM, Prayas Sapkota <<a href="mailto:sapkotaprayas@gmail.com" target="_blank">sapkotaprayas@gmail.com</a>><br>
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While I was reviewing a theme I found wp_register_script function along<br>
with wp_enqueue_script(). I was once told to use only wp_enqueue_script()<br>
to enqueue scripts files and not wp_register_scripts(). Is it ok to use<br>
wp_register_script() on a theme?<br>
<br>
Thanks,<br>
Prayas Sapkota.<br>
<br>
______________________________<u></u>_________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.<u></u>wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/<u></u>mailman/listinfo/theme-<u></u>reviewers</a><br>
<br>
<br>
</blockquote>
<br>
<br>
--<br>
<br>
*GNU/LINUX UserFree software <<a href="http://fsf.org" target="_blank">http://fsf.org</a>> is the matter of liberty not<br>
price. *<br>
______________________________<u></u>_________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.<u></u>wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/<u></u>mailman/listinfo/theme-<u></u>reviewers</a><br>
</blockquote>
______________________________<u></u>_________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.<u></u>wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/<u></u>mailman/listinfo/theme-<u></u>reviewers</a><br>
</blockquote></div>