mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
4400fe6e32
commit
be3e9aa826
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
Block a user