WordPress.org

Make WordPress Core

Changeset 5772


Ignore:
Timestamp:
06/27/07 23:28:36 (8 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r5708 r5772  
    741741            $client->debug = false; 
    742742 
    743             if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto ) ) 
     743            if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered 
    744744                add_ping( $post_ID, $pagelinkedto ); 
    745745        } 
Note: See TracChangeset for help on using the changeset viewer.