mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 13:14:29 +00:00
Remove last remaining user level checks in favor of capabilities checks. props filosofo. fixes #6940
git-svn-id: https://develop.svn.wordpress.org/trunk@7912 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -788,7 +788,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action('xmlrpc_call', 'blogger.getUsersBlogs');
|
||||
|
||||
set_current_user(0, $user_login);
|
||||
$is_admin = current_user_can('level_8');
|
||||
$is_admin = current_user_can('manage_options');
|
||||
|
||||
$struct = array(
|
||||
'isAdmin' => $is_admin,
|
||||
|
||||
Reference in New Issue
Block a user