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:
dd32 2010-02-05 14:43:08 +00:00
parent df52e16478
commit cce3973d0e
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;
switch_to_blog($blog_id);
$is_admin = current_user_can('level_8');
$is_admin = current_user_can('manage_options');
$struct[] = array(
'isAdmin' => $is_admin,