[theme-reviewers] wp_enqueue_script
Andrew Nacin
wp at andrewnacin.com
Wed Sep 15 14:42:57 UTC 2010
On Wed, Sep 15, 2010 at 10:37 AM, Chip Bennett <chip at chipbennett.net> wrote:
> When adding wp_enqueue_script( 'comment-reply' ) via functions.php, doesn't
> this function call need to be hooked into wp_head()?
If it's going via functions.php, yeah, it should be attached to a hook. Any
theme that has code bouncing around in functions.php needs careful auditing
just to see whether it's doing anything it should be waiting on.
For the specifics of comment-reply, they should only be enqueueing it on
pages they need it. An is_singular() check, I'd say.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100915/ca8793c7/attachment.htm>
More information about the theme-reviewers
mailing list