[wp-hackers] template checks
Nathan Rice
ncrice at gmail.com
Wed May 27 21:48:18 GMT 2009
Also, theme frameworks that abstract template functions might not have the
wp_footer() hook in the footer.php file, even though it may be present
elsewhere.
Nathan
My Website
http://www.nathanrice.net/
My Twitter
http://twitter.com/nathanrice
On Wed, May 27, 2009 at 5:31 PM, Stephen Rider <wp-hackers at striderweb.com>wrote:
> RE theme authors deliberately omitting it --
>
> Maybe have some way for theme authors to *explicitly* omit header/footer --
> thus you could check for either wp_footer OR the omission statement. If
> neither is there, give the warning.
>
> stoopid example: wp_footer('omit')
>
> Since it's probably fairly rare for a theme to deliberately leave it out, I
> think this would work nicely -- give the warning while allowing an out for
> themers who really don't want it.
>
> --
> Stephen Rider
> http://striderweb.com/
>
>
> On May 26, 2009, at 5:45 PM, Ozh wrote:
>
> A couple months (years?) ago I was after something similar on this
>> list. The consensus was that there's no foolproof way to make sure the
>> hook is called (and after all a theme author might deliberately omit
>> it)
>>
>> On Tue, May 26, 2009 at 11:44 PM, Joost de Valk <joost at yoast.com> wrote:
>>
>>>
>>> I know this could break on themes with no footer.php file, any hints to
>>> more
>>> subtle checks are appreciated :)
>>>
>>
>
> _______________________________________________
> 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