From f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 24 Nov 2008 17:04:14 +0000 Subject: WP Merge with revision 9860 git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1542 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- xmlrpc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlrpc.php') diff --git a/xmlrpc.php b/xmlrpc.php index 9495b7e..ed191b5 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1340,7 +1340,7 @@ class wp_xmlrpc_server extends IXR_Server { $actual_post = wp_get_single_post($post_ID,ARRAY_A); - if (!$actual_post) { + if (!$actual_post || $actual_post['post_type'] != 'post') { return new IXR_Error(404, __('Sorry, no such post.')); } @@ -2363,7 +2363,7 @@ class wp_xmlrpc_server extends IXR_Server { $actual_post = wp_get_single_post($post_ID, ARRAY_A); - if (!$actual_post) { + if (!$actual_post || $actual_post['post_type'] != 'post') { return new IXR_Error(404, __('Sorry, no such post.')); } -- cgit