Mark pingback as already pinged when the target site says it already got the pingback. props mdawaffe. fixes #4289

git-svn-id: https://develop.svn.wordpress.org/trunk@5772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-06-27 23:28:36 +00:00
parent 7b46133c79
commit de83c2db51
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}