Skip to content

Instantly share code, notes, and snippets.

@theaboutbox
Created July 15, 2009 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theaboutbox/147807 to your computer and use it in GitHub Desktop.
Save theaboutbox/147807 to your computer and use it in GitHub Desktop.
Modify FeedSmith plugin to work with Yahoo! Pipes
/* 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