From e4b3c5f46dbac2db3237195e9baf0bb51cc11120 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 19 Apr 2005 03:11:55 +0000 Subject: [PATCH] Test for true. git-svn-id: https://develop.svn.wordpress.org/trunk@2546 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); } }