[theme-reviewers] Enqueueing comment-reply

Chip Bennett chip at chipbennett.net
Thu Aug 22 12:06:26 UTC 2013


Good morning, reviewers,

I've noticed a few times now that reviewers have required Theme developers
not to use 'comment_form_before' as the action into which to hook the
callback to enqueue 'comment-reply'.

Hooking into 'comment_form_before' is perfectly fine - and in fact, using
it actually eliminates one of the conditionals normally used,
comments_open(), since the 'comment_form_before' action will never fire if
comments are closed.

In general, WordPress will throw a _doing_it_wrong() if someone is
attempting to call wp_enqueue_script() at an incorrect action. So, if
you're not getting a _doing_it_wrong(), then please double-check before
requiring the developer to change the action being used.

Thanks,

Chip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130822/dbbe2e54/attachment.html>


More information about the theme-reviewers mailing list