[wp-trac] [WordPress Trac] #28099: Empty array passed to WP_Query post__in returns posts

WordPress Trac noreply at wordpress.org
Thu Jun 5 15:18:48 UTC 2014


#28099: Empty array passed to WP_Query post__in returns posts
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:  wonderboymusic
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.0
Component:  Query            |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by pavelevap):

 Theme authors use `post__in` usually for getting Sticky posts with
 fallback to recently added posts. See example which stopped working in
 latest trunk:
 https://themes.trac.wordpress.org/browser/magazino/1.1.5/index.php#L13
 In 3.9.1 there is slider with 10 latest posts, but in current trunk there
 is no slider. There will be many related problems with themes, I guess...

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


More information about the wp-trac mailing list