Fix ping status check.

git-svn-id: http://svn.automattic.com/wordpress/branches/1.5@2679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-06-30 16:05:39 +00:00
parent 6251f851df
commit b5a9432efc

View File

@ -1200,7 +1200,7 @@ class wp_xmlrpc_server extends IXR_Server {
logIO("O","(PB) URI='$pagelinkedto' ID='$post_ID' Found='$way'");
$post = $wpdb->get_row("SELECT post_author FROM $wpdb->posts WHERE ID = '$post_ID'");
$post = get_post($post_ID);
if ( !$post ) // Post_ID not found
return new IXR_Error(33, 'The specified target URI cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');