Test for true.
git-svn-id: https://develop.svn.wordpress.org/trunk@2546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e9d456ef46
commit
e4b3c5f46d
@ -468,10 +468,10 @@ function pingback($content, $post_ID) {
|
||||
// when set to true, this outputs debug messages by itself
|
||||
$client->debug = false;
|
||||
|
||||
if ( !$client->query('pingback.ping', array($pagelinkedfrom, $pagelinkedto) ) )
|
||||
debug_fwrite($log, "Error.\n Fault code: ".$client->getErrorCode()." : ".$client->getErrorMessage()."\n");
|
||||
else
|
||||
if ( $client->query('pingback.ping', array($pagelinkedfrom, $pagelinkedto) ) )
|
||||
add_ping( $post_ID, $pagelinkedto );
|
||||
else
|
||||
debug_fwrite($log, "Error.\n Fault code: ".$client->getErrorCode()." : ".$client->getErrorMessage()."\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user