Ticket #8267: xmlrpc.php.diff
File xmlrpc.php.diff, 617 bytes (added by , 16 years ago) |
---|
-
xmlrpc.php
1906 1906 1907 1907 $actual_post = wp_get_single_post($post_ID,ARRAY_A); 1908 1908 1909 if (!$actual_post ) {1909 if (!$actual_post || $actual_post['post_type'] != 'post') { 1910 1910 return new IXR_Error(404, __('Sorry, no such post.')); 1911 1911 } 1912 1912 … … 1961 1961 1962 1962 $actual_post = wp_get_single_post($post_ID,ARRAY_A); 1963 1963 1964 if (!$actual_post ) {1964 if (!$actual_post || $actual_post['post_type'] != 'post') { 1965 1965 return new IXR_Error(404, __('Sorry, no such post.')); 1966 1966 } 1967 1967