diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 4a3615ef6d..6e7092ca6b 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1674,8 +1674,7 @@ function pingback($content, $post_ID) { // using a timeout of 3 seconds should be enough to cover slow servers $client = new IXR_Client($pingback_server_url); $client->timeout = 3; - $client->useragent .= ' -- WordPress/' . $wp_version; - + $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom); // when set to true, this outputs debug messages by itself $client->debug = false;