On Wed, Oct 13, 2010 at 12:35 PM, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I like the implementation, but we&#39;ll have to be careful about the assumptions.<div><br></div><div>For example: wp_footer() will NOT always be in footer.php. It can (legitimately) be in index.php (or any hierarchical template file (archive.php, page.php, attachment.php, 404.php, etc.).</div>

</blockquote><div><br></div><div>I&#39;m sure it was just a quick example. I think what we&#39;d end up doing is loading all of the PHP files into a string, and all the CSS files into a string, etc., and then do string searches on whichever we need to depending on the check.</div>

</div>