mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
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:
parent
6251f851df
commit
b5a9432efc
|
|
@ -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.');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user