Return empty post list instead of fault code when there are no posts. Props josephscott. fixes #7287
git-svn-id: https://develop.svn.wordpress.org/trunk@9133 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b93e939f86
commit
ad70a0b455
@ -2598,8 +2598,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$posts_list = wp_get_recent_posts($num_posts);
|
||||
|
||||
if (!$posts_list) {
|
||||
$this->error = new IXR_Error(500, __('Either there are no posts, or something went wrong.'));
|
||||
return $this->error;
|
||||
return array( );
|
||||
}
|
||||
|
||||
set_current_user( 0, $user_login );
|
||||
|
Loading…
Reference in New Issue
Block a user