[theme-reviewers] wp_enqueue_script
Andrew Nacin
wp at andrewnacin.com
Wed Sep 15 14:51:17 UTC 2010
On Wed, Sep 15, 2010 at 10:49 AM, Chip Bennett <chip at chipbennett.net> wrote:
> For the Theme in question, it's wrapped in the usual conditionals (e.g. *if
> ( is_singular() && get_option( 'thread_comments' ) )* ). It's just not
> hooked into anything. I'll make the suggestion to hook into wp_head().
Yep. It's too early. In fact, in 3.1-alpha that theme will fall flat on its
face. We don't initialize the query object until just before init, so
is_singular() will toss a fatal error. (Previously, it didn't work, it just
didn't fail as miraculously.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100915/cfe519da/attachment.htm>
More information about the theme-reviewers
mailing list