Make WordPress Core


Ignore:
Timestamp:
12/06/2009 02:28:35 PM (15 years ago)
Author:
westi
Message:

Allow plugins to filter the UserAgent used for PingBack requests. Fixes #11317 props mtdewvirus.

File:
1 edited

Legend:

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

    r12300 r12321  
    16751675            $client = new IXR_Client($pingback_server_url);
    16761676            $client->timeout = 3;
    1677             $client->useragent .= ' -- WordPress/' . $wp_version;
    1678 
     1677            $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom);
    16791678            // when set to true, this outputs debug messages by itself
    16801679            $client->debug = false;
Note: See TracChangeset for help on using the changeset viewer.