Return empty array instead of false from get_editable_user_ids. Props Denis-de-Bernardy, pairg. fixes #10119 for 2.8.1
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5c8cde108
commit
61c836b9d3
|
@ -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 )
|
if ( $user->has_cap("edit_{$post_type}s") || $exclude_zeros == false )
|
||||||
return array($user->id);
|
return array($user->id);
|
||||||
else
|
else
|
||||||
return false;
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$level_key = $wpdb->prefix . 'user_level';
|
$level_key = $wpdb->prefix . 'user_level';
|
||||||
|
|
Loading…
Reference in New Issue