mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Return empty array instead of false from get_editable_user_ids. Props Denis-de-Bernardy, pairg. fixes #10119 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
547996eb20
commit
fc67a8145e
@ -253,7 +253,7 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'p
|
||||
if ( $user->has_cap("edit_{$post_type}s") || $exclude_zeros == false )
|
||||
return array($user->id);
|
||||
else
|
||||
return false;
|
||||
return array();
|
||||
}
|
||||
|
||||
$level_key = $wpdb->prefix . 'user_level';
|
||||
|
Loading…
x
Reference in New Issue
Block a user