[wp-hackers] is_front_page() after modifying query_posts

Jesus Lizama beautifulcrimes at gmail.com
Fri Mar 11 20:08:59 UTC 2011


I will also say yes. is_front_page() should always return true for
index.php.

On Fri, Mar 11, 2011 at 11:18 AM, Gavin Pearce <Gavin.Pearce at 3seven9.com>wrote:

> After consensus before writing a patch:
>
>
>
> As I'm sure you're aware - if you modify the main query on the front
> page of a blog using query_posts, then is_front_page() will return
> false.
>
>
>
> Of course this is because you've now updated the query, changing, for
> all intents and purposes, the page you're on.
>
>
>
> 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.
>
>
>
> Thoughts / opinions either way? Apologies if I've dragged up an old
> discussion, did dig through the list archives.
>
>
>
> Have a good weekend all,
>
> Gav
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Jesus Lizama
Developer/Designer
Spifffy.com | ConquerLA.com | Bassdump.com
Cell: (323)336-2953


More information about the wp-hackers mailing list