[wp-hackers] bug in is_home in query filters for custom post landing pages?

Jeff Waugh jdub at bethesignal.org
Mon Jun 14 23:59:15 UTC 2010

<quote who="Simon Blackbourn">

> i've just installed RC3 and it seems that all the post query filters
> (posts_join, posts_where, posts_orderby & posts_fields) are seeing
> is_home() as true for custom post type landing pages, even when they're
> not the home page.

That warrants some consideration (or a swoop of the axe from an opinionated
core committer), but in this case, shouldn't you be using is_front_page()?
(or do you want this to run even when showing the "blog" page when a custom
front page is set?)

- Jeff

Ubuntu's Bleeding Edge                      http://ubuntuedge.wordpress.com/
     "Just because I sit in front of a terminal all day doesn't mean I
      couldn't hunt you down and righteously kick your ass to feed my
          newfound cannabalism." - Darwinian System Administration

More information about the wp-hackers mailing list