Whitespace cleanup. Props donncha. fixes #4034
git-svn-id: https://develop.svn.wordpress.org/trunk@5115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a6d5f8788
commit
8fd1367323
28
xmlrpc.php
28
xmlrpc.php
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue