mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed notices
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user