Allow a plugin to change the filter the magpie user agent string. Fixes #7085 props JohnLamansky.

git-svn-id: https://develop.svn.wordpress.org/trunk@8503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-07-30 07:04:57 +00:00
parent 29d888d397
commit c8c3da8f81
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ endif;
function _fetch_remote_file ($url, $headers = "" ) {
// Snoopy is an HTTP client in PHP
$client = new Snoopy();
$client->agent = MAGPIE_USER_AGENT;
$client->agent = apply_filters( 'magpie_user_agent', MAGPIE_USER_AGENT );
$client->read_timeout = MAGPIE_FETCH_TIME_OUT;
$client->use_gzip = MAGPIE_USE_GZIP;
if (is_array($headers) ) {