[wp-hackers] is_front_page() after modifying query_posts

Austin Matzko austin at ilfilosofo.com
Fri Mar 11 19:24:49 UTC 2011


On Fri, Mar 11, 2011 at 1:18 PM, Gavin Pearce <Gavin.Pearce at 3seven9.com> wrote:
> However ... is this really the preferred behaviour for is_front_page()?
> Personally I feel it should always return true if you're on the front
> page, *even* if you modify the front page query.

I think it might make sense for is_front_page() the function always to
return the value of is_front_page() the method, of the *$wp_the_query
object.*  That would probably do what you want and match most use
cases.


More information about the wp-hackers mailing list