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
This commit is contained in:
parent
83d0dab731
commit
a2f7332558
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue