diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index e46d41fba9..64326e6552 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -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"); } }