From c589d81c3461020a9f57188935069b6f0753585f Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 13 Oct 2008 21:28:28 +0000 Subject: [PATCH] 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 --- xmlrpc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index 9417248a56..8085ba36d8 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -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 );