Do not use deprecated user levels in XMLRPC (s/level_8/manage_options/). Props nacin. Fixes #10806
git-svn-id: https://develop.svn.wordpress.org/trunk@12969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cbe9380b41
commit
d8e395f8fb
|
@ -469,7 +469,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
$blog_id = $blog->userblog_id;
|
$blog_id = $blog->userblog_id;
|
||||||
switch_to_blog($blog_id);
|
switch_to_blog($blog_id);
|
||||||
$is_admin = current_user_can('level_8');
|
$is_admin = current_user_can('manage_options');
|
||||||
|
|
||||||
$struct[] = array(
|
$struct[] = array(
|
||||||
'isAdmin' => $is_admin,
|
'isAdmin' => $is_admin,
|
||||||
|
|
Loading…
Reference in New Issue