[wp-trac] [WordPress Trac] #27282: WP_Query returns more results when there are sticky posts

WordPress Trac noreply at wordpress.org
Fri Apr 29 12:49:16 UTC 2016


#27282: WP_Query returns more results when there are sticky posts
--------------------------+-----------------------------
 Reporter:  markoheijnen  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by bastho):

 Replying to [comment:14 Trimension]:

 > This simple design change would also bring some more benefits, because
 as a Post-Property it doesn't need the restriction to be only available in
 normal Posts but also in CPT's and it would also improve the performance
 because one query is better than two, Right ?!

 It means a migration script which updates all concerned posts before
 cleaning the options table.

 Maybe @bendoh 's patch can be applied while a new ticket is created to
 change the design.
 1. stop the bug
 2. redesign and migrate

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


More information about the wp-trac mailing list