diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 7055db7..0f6a4e1 100644
a
|
b
|
function generic_ping( $post_id = 0 ) { |
2550 | 2550 | * |
2551 | 2551 | * @param string $content Post content to check for links. If empty will retrieve from post. |
2552 | 2552 | * @param int|WP_Post $post_id Post Object or ID. |
| 2553 | * @return array An array of pingback statuses. |
2553 | 2554 | */ |
2554 | 2555 | function pingback( $content, $post_id ) { |
2555 | 2556 | include_once( ABSPATH . WPINC . '/class-IXR.php' ); |
… |
… |
function pingback( $content, $post_id ) { |
2606 | 2607 | */ |
2607 | 2608 | do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) ); |
2608 | 2609 | |
| 2610 | $ping_status = array(); |
| 2611 | |
2609 | 2612 | foreach ( (array) $post_links as $pagelinkedto ) { |
2610 | 2613 | $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); |
2611 | 2614 | |
… |
… |
function pingback( $content, $post_id ) { |
2633 | 2636 | // when set to true, this outputs debug messages by itself |
2634 | 2637 | $client->debug = false; |
2635 | 2638 | |
2636 | | if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered |
| 2639 | if ( $status = $client->query( 'pingback.ping', $pagelinkedfrom, $pagelinkedto ) || ( isset( $client->error->code ) && 48 == $client->error->code ) ) { |
2637 | 2640 | add_ping( $post, $pagelinkedto ); |
| 2641 | } |
| 2642 | $ping_status[ $pagelinkedto ] = $status; |
2638 | 2643 | } |
2639 | 2644 | } |
| 2645 | return $ping_status; |
2640 | 2646 | } |
2641 | 2647 | |
2642 | 2648 | /** |