From ac4cbfa8539377951dbca2782ff84f729d49644b Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 19 Apr 2005 03:11:55 +0000 Subject: [PATCH] Test for true. git-svn-id: http://svn.automattic.com/wordpress/trunk@2546 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 e46d41fba..64326e655 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"); } }