[wp-trac] [WordPress Trac] #36907: Improved sticky post query

WordPress Trac noreply at wordpress.org
Wed Mar 23 16:13:29 UTC 2022

#36907: Improved sticky post query
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  enhancement                      |      Status:  reopened
 Priority:  normal                           |   Milestone:  6.0
Component:  Query                            |     Version:  3.5
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


 It's not quite clear why [52982] removed the `'nopaging' => true` argument
 from the `get_posts()` call in question, as neither the ticket nor the
 commit message mention the removal.

 With that change, only 5 sticky posts are displayed now. This is a
 backward compatibility break, see #55444.

 [attachment:"36907.diff"] restores `'nopaging' => true` and reorder the
 parameters for consistency with similar calls elsewhere.

Ticket URL: <https://core.trac.wordpress.org/ticket/36907#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list