- fixed notices

This commit is contained in:
Denis Baranov
2017-12-12 17:00:21 +02:00
parent 18dc885ac0
commit da7d53d0fb
+1 -1
View File
@@ -109,7 +109,7 @@ if ( ! class_exists( 'Query' ) ) {
} else {
$custom_posts = new \WP_Query();
$args['post_status'] = explode( ',', $args['post_status'] );
$args['post_status'] = is_array( $args['post_status'] ) ? $args['post_status'] : explode( ',', $args['post_status'] );
$custom_posts->query( $args );