<br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 11:31 AM, Austin Matzko <span dir="ltr"><<a href="mailto:austin@pressedcode.com">austin@pressedcode.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Sep 15, 2010 at 10:21 AM, Chip Bennett <<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>> wrote:<br>
> But, what we really need is what the official best-practice suggestion will<br>
> be, for the purposes of the Guidelines. We need to ensure that all reviewers<br>
> will be making consistent suggestions with respect to wp_enqueue_script()<br>
> within functions.php.<br>
<br>
</div>It's really a range depending on what you're trying to do: before init<br>
is too early; default wp_head is too late.<br>
<br>
I would strongly recommend that front-end scripts not be enqueued in<br>
the admin, so that means checking that is_admin() returns false if a<br>
front-end conditional "tag" like is_singular() isn't already used.</blockquote><div><br></div><div>The point is, before init is too early, but on init means it'll show up in the admin.</div><div>Hence template_redirect is a good option, as that is enough to ensure it only</div>
<div>gets enqueued for the frontend, with no is_admin() check required.</div></div>