Allow plugins to filter the UserAgent used for PingBack requests. Fixes #11317 props mtdewvirus.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9957a119b3
commit
92a8421c69
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue