<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
You can also hook in too early if you need to use the is_*()
conditional tags.<br>
<br>
On 6/3/2011 8:09 AM, Mike Little wrote:
<blockquote
cite="mid:BANLkTimrR31Z3kZEbqGTrvjo0wOqZKy+MQ@mail.gmail.com"
type="cite">Just to throw an edge case spanner in the works, I
think you *can* enqueue too early.
<div><br>
<div>I had a problem on a project a few weeks ago that was using
domain mapping on a temporary domain to build a site before
the real domain was pointed at the newserver. What we
discovered was that *some* scripts and *some* styles were
being output with the wrong domain, both front end and admin
screens, but that others were mapped correctly.</div>
<div><br>
</div>
<div>It turns out that WP caches the full url to the enqueued
scripts/styles, and thus if they are enqueued too early
(before the mapping plugin can hook site_url() etc), they will
be output with the wrong domain.</div>
<div><br>
</div>
<div>It *is* an edge case, but in this case it broke the site.
The fix, by the way, IIRC was to make the domain mapper search
and replace in the enqueued caches after hooking
print_scripts/styles! Nasty!</div>
<div><br>
</div>
<div><br>
</div>
<div>Mike</div>
<div>-- <br>
Mike Little
<div><a moz-do-not-send="true" href="http://zed1.com/"
target="_blank">http://zed1.com/</a></div>
<div><br>
</div>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
</body>
</html>