[wp-hackers] Check for wp_footer
Peter Westwood
peter.westwood at ftwr.co.uk
Sun Apr 25 07:15:36 UTC 2010
The other way to do it is to do a http request based test which a
special query arg on which you output a string on wp_footer.
From memory SpamKarma2 has a check done like this for correct comment
form hooks
--
Peter Westwood
http://peter.westwood.name
On 25 Apr 2010, at 04:28, "Dion Hulse (dd32)" <wordpress at dd32.id.au>
wrote:
> You cant test for it reliably.
>
> You can attach to the shutdown hook, and check if did_action
> ('wp_footer').. thats the only real way other than reading the
> footer template into memory and doing a string comparison.
>
> Better yet, just tell anyone who runs into a bug caused by it, to
> fix their theme..
>
> --
> Dion Hulse / dd32
> Contact:
> e: contact at dd32.id.au
> Web: http://dd32.id.au/
>
> On Sun, 25 Apr 2010 12:37:11 +1000, Vinicius Massuchetto <viniciusandre at gmail.com
> > wrote:
>
>> Couldn't find this on forums or anywhere else.
>> What can I test to check if wp_footer was placed on the theme?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list