mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
More typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -249,7 +249,7 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'p
|
||||
$user = new WP_User( $user_id );
|
||||
$post_type_obj = get_post_type_object($post_type);
|
||||
|
||||
if ( ! $user->has_cap($post_type_obj->cap->edit_other_posts) ) {
|
||||
if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
|
||||
if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
|
||||
return array($user->id);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user