[wp-trac] [WordPress Trac] #39947: REST API: Sticky post query returns unsticky posts when no posts are sticky

WordPress Trac noreply at wordpress.org
Sat Feb 25 04:42:15 UTC 2017


#39947: REST API: Sticky post query returns unsticky posts when no posts are sticky
---------------------------------------------+-----------------------
 Reporter:  ryelle                           |       Owner:  jnylen0
     Type:  defect (bug)                     |      Status:  accepted
 Priority:  normal                           |   Milestone:  4.7.3
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------
Changes (by jnylen0):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests commit
 * status:  assigned => accepted


Comment:

 [attachment:39947.2.diff] adds more test cases and also tests the `WHERE`
 clauses generated by `WP_Query` using a similar approach to #39079.  This
 catches the `IN(0)` fix on this ticket.

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


More information about the wp-trac mailing list