[wp-trac] [WordPress Trac] #28099: Empty array passed to WP_Query post__in returns posts
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Dec 23 01:27:35 UTC 2020
    
    
  
#28099: Empty array passed to WP_Query post__in returns posts
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:  wonderboymusic
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Query            |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------
Comment (by hojoNc):
 Mannnn lost so much time on this!
 'post__in' => empty( $include ) ? [ 0 ] : $include,
 is a good fix but still do something WPCore please \o/
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28099#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list