<div dir="ltr">You can approve theme which registers and then enqueue's that script.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 4:49 PM, Bijay Yadav <span dir="ltr"><<a href="mailto:bijay2045@gmail.com" target="_blank">bijay2045@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"><div>@Chip Bennett. What does not required over here means? Can you explain.<br><br></div>Should I not approve the theme with wp_register_script? I am confused over here.<div>
<div class="h5"><br><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jun 25, 2014 at 4:59 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">

<p dir="ltr">Not required.</p><div><div>
<div class="gmail_quote">On Jun 25, 2014 4:20 AM, "Anders NorĂ©n" <<a href="mailto:anders@andersnoren.se" target="_blank">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>
</div></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></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>