Ticket #8267: xmlrpc.php.diff

File xmlrpc.php.diff, 617 bytes (added by josephscott, 4 years ago)
  • xmlrpc.php

     
    19061906 
    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                } 
    19121912 
     
    19611961 
    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                } 
    19671967