Whitespace cleanup. Props donncha. fixes #4034

git-svn-id: http://svn.automattic.com/wordpress/trunk@5115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-26 23:39:28 +00:00
parent 4400fe6e32
commit be3e9aa826

View File

@ -566,24 +566,24 @@ class wp_xmlrpc_server extends IXR_Server {
$this->escape($args);
$user_login = $args[1];
$user_pass = $args[2];
$user_login = $args[1];
$user_pass = $args[2];
if (!$this->login_pass_ok($user_login, $user_pass)) {
return $this->error;
}
if (!$this->login_pass_ok($user_login, $user_pass)) {
return $this->error;
}
set_current_user(0, $user_login);
$is_admin = current_user_can('level_8');
set_current_user(0, $user_login);
$is_admin = current_user_can('level_8');
$struct = array(
'isAdmin' => $is_admin,
'url' => get_option('home') . '/',
'blogid' => '1',
'blogName' => get_option('blogname')
);
$struct = array(
'isAdmin' => $is_admin,
'url' => get_option('home') . '/',
'blogid' => '1',
'blogName' => get_option('blogname')
);
return array($struct);
return array($struct);
}