[wp-trac] [WordPress Trac] #24473: is_home returns true for pages created with custom rewrite_rules

WordPress Trac noreply at wordpress.org
Tue Jun 25 13:27:31 UTC 2013


#24473: is_home returns true for pages created with custom rewrite_rules
-------------------------+------------------------------
 Reporter:  LucasMS      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:  3.5.1
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  Rewrite Rules => Query


Comment:

 Basically, you're adding a custom query variable:
 {{{
 http://mysite.com/?questions_category=...
 }}}
 WP_Query still considers this a home page, since it's the default fallback
 if none of the other conditions are true. See the comments on #18114.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24473#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list