Skip to content

Commit 95ab122

Browse files
committed
Updates sanitize status
1 parent e6996f7 commit 95ab122

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/lcp-catlist.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,8 @@ private function sanitize_status($statuses){
620620
if (in_array('private', $statuses) || in_array('draft', $statuses)) {
621621
if ( !( current_user_can('editor') || current_user_can('administrator')) ) {
622622
return implode(',', array_diff($statuses, array('private', 'draft')));
623-
} else {
624-
return $statuses;
625623
}
626624
}
625+
return $statuses;
627626
}
628627
}

0 commit comments

Comments
 (0)