From b5a9432efc1e53bfc77b396160e2193ba24a09dc Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 30 Jun 2005 16:05:39 +0000 Subject: [PATCH] Fix ping status check. git-svn-id: http://svn.automattic.com/wordpress/branches/1.5@2679 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index 5b1e640e78..bac4af72cf 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -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.');