Skip to content

Commit 7d28d3d

Browse files
author
Curtis Loisel
committed
Removing array filter that is causing empty arrays to return all results
1 parent 25af2f3 commit 7d28d3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

post-selection-ui.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function __construct($name, $args = array() ) {
139139
);
140140
$args = wp_parse_args($args, $defaults);
141141
$args['selected'] = array_filter(array_map('intval', $args['selected']));
142-
$args['post__in'] = array_filter(array_map('intval', $args['post__in']));
142+
$args['post__in'] = array_map('intval', $args['post__in']);
143143

144144
$args['post_type'] = (array) $args['post_type'];
145145
$args['post_status'] = (array) $args['post_status'];

0 commit comments

Comments
 (0)