WordPress.org

Make WordPress Core

Changeset 8503


Ignore:
Timestamp:
07/30/08 07:04:57 (6 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

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

    r7999 r8503  
    519519    // Snoopy is an HTTP client in PHP 
    520520    $client = new Snoopy(); 
    521     $client->agent = MAGPIE_USER_AGENT; 
     521    $client->agent = apply_filters( 'magpie_user_agent', MAGPIE_USER_AGENT ); 
    522522    $client->read_timeout = MAGPIE_FETCH_TIME_OUT; 
    523523    $client->use_gzip = MAGPIE_USE_GZIP; 
Note: See TracChangeset for help on using the changeset viewer.