Make WordPress Core

Changeset 9745


Ignore:
Timestamp:
11/18/2008 12:53:30 AM (16 years ago)
Author:
ryan
Message:

Check type. Props josephscott. fixes #8267

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r9696 r9745  
    19071907        $actual_post = wp_get_single_post($post_ID,ARRAY_A);
    19081908
    1909         if (!$actual_post) {
     1909        if (!$actual_post || $actual_post['post_type'] != 'post') {
    19101910            return new IXR_Error(404, __('Sorry, no such post.'));
    19111911        }
     
    19621962        $actual_post = wp_get_single_post($post_ID,ARRAY_A);
    19631963
    1964         if (!$actual_post) {
     1964        if (!$actual_post || $actual_post['post_type'] != 'post') {
    19651965            return new IXR_Error(404, __('Sorry, no such post.'));
    19661966        }
Note: See TracChangeset for help on using the changeset viewer.