From c8c3da8f8100437c3db7afcbb9976d8af6b0f3cf Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 30 Jul 2008 07:04:57 +0000 Subject: [PATCH] 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 --- wp-includes/rss.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/rss.php b/wp-includes/rss.php index 15b0a8dd78..830f96427e 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -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) ) {