<div dir="ltr"><div>If wp_register_script() and wp_enqueue_script() are used in the same context/function, then its better to omit wp_register_script().<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jun 25, 2014 at 1:46 PM, Prayas Sapkota <span dir="ltr"><<a href="mailto:sapkotaprayas@gmail.com" target="_blank">sapkotaprayas@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">While I was reviewing a theme I found wp_register_script function along with
wp_enqueue_script(). I was once told to use only wp_enqueue_script() to enqueue
scripts files and not wp_register_scripts(). Is it ok to use
wp_register_script() on a theme?<div>
</div><div><br></div><div>Thanks,</div><div>Prayas Sapkota.</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><br clear="all"><br>-- <br><b>GNU/LINUX User<br><a href="http://fsf.org" target="_blank">Free software</a> is the matter of liberty not price.
</b>
</div>