[theme-reviewers] Helping theme review
Chip Bennett
chip at chipbennett.net
Wed Jun 25 12:00:45 UTC 2014
The functions are used as-designed. That wp_enqueue_script
()/wp_enqueue_style () *can* be used both to register and to enqueue
doesn't mean that they *have* to be. I usually make that recommendation,
but it's not required.
On Jun 25, 2014 6:19 AM, "Bijay Yadav" <bijay2045 at gmail.com> wrote:
> @Chip Bennett. What does not required over here means? Can you explain.
>
> Should I not approve the theme with wp_register_script? I am confused over
> here.
>
>
> On Wed, Jun 25, 2014 at 4:59 PM, Chip Bennett <chip at chipbennett.net>
> wrote:
>
>> Not required.
>> On Jun 25, 2014 4:20 AM, "Anders Norén" <anders at andersnoren.se> wrote:
>>
>>> 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
>>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140625/8f8eeadc/attachment.html>
More information about the theme-reviewers
mailing list