id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 39682,WP_Query: Small fix for 'post__in' argument showing all results if empty array is passed,edonramadani,,"When an empty array is passed to {{{ $args['posts__in'] }}} it should return no results instead of all posts. File: wp-includes/class-wp-query.php @line 1956 {{{#!php } elseif ( $q['post__in'] ) { if(count($q['posts__in']) > 0){ $post__in = implode(',', array_map( 'absint', $q['post__in'] )); } else { $post__in = NULL; } $where .= "" AND {$wpdb->posts}.ID IN ($post__in)""; } }}} ",enhancement,closed,normal,,Query,4.7,normal,duplicate,,,