mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 15:46:04 +01:00
Test for true.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
03b04efa1c
commit
ac4cbfa853
@ -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