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:
Dion Hulse 2010-02-05 14:43:08 +00:00
parent cbe9380b41
commit d8e395f8fb
1 changed files with 1 additions and 1 deletions

View File

@ -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,