diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 76d3e42772..566d8efe6e 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -626,7 +626,7 @@ function pingback($content, $post_ID) { // when set to true, this outputs debug messages by itself $client->debug = false; - if ( $client->query('pingback.ping', array($pagelinkedfrom, $pagelinkedto) ) ) + if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto ) ) add_ping( $post_ID, $pagelinkedto ); else debug_fwrite($log, "Error.\n Fault code: ".$client->getErrorCode()." : ".$client->getErrorMessage()."\n");