Make WordPress Core


Ignore:
Timestamp:
11/18/2008 01:00:29 AM (16 years ago)
Author:
ryan
Message:

Check type. Props josephscott. fixes #8267 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/xmlrpc.php

    r8445 r9747  
    13441344        $actual_post = wp_get_single_post($post_ID,ARRAY_A);
    13451345
    1346         if (!$actual_post) {
     1346        if (!$actual_post || $actual_post['post_type'] != 'post') {
    13471347            return new IXR_Error(404, __('Sorry, no such post.'));
    13481348        }
     
    23672367        $actual_post = wp_get_single_post($post_ID, ARRAY_A);
    23682368
    2369         if (!$actual_post) {
     2369        if (!$actual_post || $actual_post['post_type'] != 'post') {
    23702370            return new IXR_Error(404, __('Sorry, no such post.'));
    23712371        }
Note: See TracChangeset for help on using the changeset viewer.