Created
July 15, 2009 16:03
-
-
Save theaboutbox/147807 to your computer and use it in GitHub Desktop.
Modify FeedSmith plugin to work with Yahoo! Pipes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Modify the regex here to serve the raw feed data to Feedburner AND pipes | |
everyone else gets redirected to the Feedburner feed url */ | |
if (!preg_match("/feedburner|feedvalidator|pipes/i", $_SERVER['HTTP_USER_AGENT'])) { | |
add_action('template_redirect', 'ol_feed_redirect'); | |
add_action('init','ol_check_url'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment