[theme-reviewers] Helping theme review

nithin kr nithinkr09 at gmail.com
Wed Jun 25 09:13:35 UTC 2014


If wp_register_script() and wp_enqueue_script() are used in the same
context/function, then its better to omit wp_register_script().


On Wed, Jun 25, 2014 at 1:46 PM, Prayas Sapkota <sapkotaprayas at gmail.com>
wrote:

> 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?
>
> Thanks,
> Prayas Sapkota.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>


-- 

*GNU/LINUX UserFree software <http://fsf.org> is the matter of liberty not
price. *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140625/1014c52a/attachment.html>


More information about the theme-reviewers mailing list