remove unecessary id
This commit is contained in:
parent
c2f50ff94f
commit
50bd0d8fc7
|
@ -232,7 +232,7 @@ class Items extends Repository {
|
|||
*/
|
||||
if (!isset($args['post_status'])) {
|
||||
$status_obj = get_post_status_object( $collection->get_status() );
|
||||
if ( $status_obj->public || current_user_can( $collection->cap->read_private_posts, $collection->get_id() ) ) {
|
||||
if ( $status_obj->public || current_user_can( $collection->cap->read_private_posts ) ) {
|
||||
$cpt[] = $collection->get_db_identifier();
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue