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

WordPress Trac noreply at wordpress.org
Thu Jan 10 12:08:41 UTC 2019


#45894: is_home conditional tag returns incorrect value with home pagination
--------------------------+------------------------------
 Reporter:  man4toman     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  5.0.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by ChriCo):

 The naming of those conditional functions are quiet irritating, but i
 would say, that your patch is a breaking change to WordPress.

 The {{{is_home}}} indicates, if the query is for the blog homepage. Which
 is for page 1 and page {{{n}}} correct, because you're still running the
 "home"-query when you're on page 2, just with an LIMIT/OFFSET.

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


More information about the wp-trac mailing list