Skip to content

Commit

Permalink
Check type. Props josephscott. fixes #8267 for 2.6
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@9747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Nov 18, 2008
1 parent 9f161b7 commit 7f92e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmlrpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ function blogger_deletePost($args) {

$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.'));
}

Expand Down Expand Up @@ -2366,7 +2366,7 @@ function mt_getTrackbackPings($args) {

$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.'));
}

Expand Down

0 comments on commit 7f92e82

Please sign in to comment.