[theme-reviewers] wp_enqueue_script
Austin Matzko
austin at pressedcode.com
Wed Sep 15 15:31:52 UTC 2010
On Wed, Sep 15, 2010 at 10:21 AM, Chip Bennett <chip at chipbennett.net> wrote:
> But, what we really need is what the official best-practice suggestion will
> be, for the purposes of the Guidelines. We need to ensure that all reviewers
> will be making consistent suggestions with respect to wp_enqueue_script()
> within functions.php.
It's really a range depending on what you're trying to do: before init
is too early; default wp_head is too late.
I would strongly recommend that front-end scripts not be enqueued in
the admin, so that means checking that is_admin() returns false if a
front-end conditional "tag" like is_singular() isn't already used.
More information about the theme-reviewers
mailing list