From f08ff1124c729a5111f47369534ddaec0ca783e9 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@8503 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 15b0a8dd7..830f96427 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) ) {