summaryrefslogtreecommitdiffstats
path: root/xmlrpc.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-11-24 17:04:14 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-11-24 17:04:14 +0000
commitf3f3886b6ce0f9cdf2a663c450a1ddb8593bd799 (patch)
treee4ec667aae78a662485b750905182bf3d39c19ad /xmlrpc.php
parent23f67568a169dd05954b92d198923850709baae3 (diff)
downloadwordpress-mu-f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799.tar.gz
wordpress-mu-f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799.tar.xz
wordpress-mu-f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799.zip
WP Merge with revision 9860
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1542 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'xmlrpc.php')
-rw-r--r--xmlrpc.php4
1 files changed, 2 insertions, 2 deletions
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.'));
}