[wp-trac] [WordPress Trac] #49550: is_home is set to true even for cron jobs, which causes sticky posts to get prepended to all WP_Query results

WordPress Trac noreply at wordpress.org
Fri Feb 24 23:41:36 UTC 2023


#49550: is_home is set to true even for cron jobs, which causes sticky posts to get
prepended to all WP_Query results
--------------------------+------------------------------
 Reporter:  archon810     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  5.3.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by xParham):

 I also want to add that sticky posts are ignored when the query only asks
 for the `ids`, and that is another unexpected behavior. The `fields`
 parameter shouldn't affect whether sticky posts will be include or not.
 But perhaps this should be tracked as a separate bug.

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


More information about the wp-trac mailing list