mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Do not use deprecated user levels in XMLRPC (s/level_8/manage_options/). Props nacin. Fixes #10806
git-svn-id: http://svn.automattic.com/wordpress/trunk@12969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df52e16478
commit
cce3973d0e
@ -469,7 +469,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
$blog_id = $blog->userblog_id;
|
||||
switch_to_blog($blog_id);
|
||||
$is_admin = current_user_can('level_8');
|
||||
$is_admin = current_user_can('manage_options');
|
||||
|
||||
$struct[] = array(
|
||||
'isAdmin' => $is_admin,
|
||||
|
Loading…
Reference in New Issue
Block a user