summaryrefslogtreecommitdiffstats
path: root/xmlrpc.php
diff options
context:
space:
mode:
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.'));
}