From a2f73325583bc781d42e6aa7780ad52ddaad8b1d Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 27 Jun 2007 23:28:36 +0000 Subject: [PATCH] Mark pingback as already pinged when the target site says it already got the pingback. props mdawaffe. fixes #4289 git-svn-id: http://svn.automattic.com/wordpress/trunk@5772 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index a3cfb5020..4a27fedb3 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -740,7 +740,7 @@ function pingback($content, $post_ID) { // when set to true, this outputs debug messages by itself $client->debug = false; - if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto ) ) + if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered add_ping( $post_ID, $pagelinkedto ); } }