[wp-testers] Conditional tags not working

Andrew Nacin wp at andrewnacin.com
Sun Jan 17 06:16:10 UTC 2010


>
> <?php
> if(is_singular())
> wp_enqueue_script( 'comment-reply' );
> ?>
>

Adding to Dion and Austin, wp_enqueue_script() shouldn't be called in global
scope in functions.php and should instead be attached to a hook.


More information about the wp-testers mailing list