[theme-reviewers] Helping theme review
Anders Norén
anders at andersnoren.se
Wed Jun 25 09:20:04 UTC 2014
Is it required, though? Prayas is referring to my theme, Baskerville:
https://themes.trac.wordpress.org/ticket/19154. I use both
wp_register_script() and wp_enqueue_script() because I think it improves
the readability of functions.php.
Anders
On 25 Jun 2014, at 11:13, nithin kr wrote:
> 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. *
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
More information about the theme-reviewers
mailing list