Return empty post list instead of fault code when there are no posts. Props josephscott. fixes #7287

git-svn-id: http://svn.automattic.com/wordpress/trunk@9133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-13 21:28:28 +00:00
parent 2737ee0ab4
commit c589d81c34
1 changed files with 1 additions and 2 deletions

View File

@ -2598,8 +2598,7 @@ class wp_xmlrpc_server extends IXR_Server {
$posts_list = wp_get_recent_posts($num_posts); $posts_list = wp_get_recent_posts($num_posts);
if (!$posts_list) { if (!$posts_list) {
$this->error = new IXR_Error(500, __('Either there are no posts, or something went wrong.')); return array( );
return $this->error;
} }
set_current_user( 0, $user_login ); set_current_user( 0, $user_login );