Skip to content

Commit

Permalink
Removing array filter that is causing empty arrays to return all results
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Loisel committed Mar 3, 2015
1 parent 25af2f3 commit 7d28d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-selection-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function __construct($name, $args = array() ) {
);
$args = wp_parse_args($args, $defaults);
$args['selected'] = array_filter(array_map('intval', $args['selected']));
$args['post__in'] = array_filter(array_map('intval', $args['post__in']));
$args['post__in'] = array_map('intval', $args['post__in']);

$args['post_type'] = (array) $args['post_type'];
$args['post_status'] = (array) $args['post_status'];
Expand Down

0 comments on commit 7d28d3d

Please sign in to comment.