[wp-trac] [WordPress Trac] #45894: is_home conditional tag returns incorrect value with index pagination

WordPress Trac noreply at wordpress.org
Thu Jan 10 00:29:26 UTC 2019


#45894: is_home conditional tag returns incorrect value with index pagination
--------------------------+-----------------------------
 Reporter:  man4toman     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  5.0.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 I create a index page with simple posts loop that paginate with
 'the_posts_pagination' function, in default index 'is_home' returns true
 but when I navigate to page 2, 'is_home' returns true again!

 The reading options is set on default values.

 I check $wp_query in these 2 page, when 'is_page' is true we aren't in
 home.

 So I add this condition and create the patch.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45894>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list