diff -r f507feede89a -r 09a1c134465b web/wp-content/plugins/feedburner-plugin/fdfeedburner.php --- a/web/wp-content/plugins/feedburner-plugin/fdfeedburner.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-content/plugins/feedburner-plugin/fdfeedburner.php Wed Dec 19 17:46:52 2012 -0800 @@ -1,11 +1,11 @@ + ?>

+

+ /> + +

+

@@ -171,10 +184,11 @@ if (!isset($options['feedburner_append_cats'])) $options['feedburner_append_cats'] = 0; if (!isset($options['feedburner_no_cats'])) $options['feedburner_no_cats'] = 0; if (!isset($options['feedburner_no_search'])) $options['feedburner_no_search'] = 0; + if (!isset($options['feedburner_no_author'])) $options['feedburner_no_author'] = 0; $feed_url = $options['feedburner_url']; $comment_url = $options['feedburner_comment_url']; if ($feed_url == null && $comment_url == null) return; - + // Get category $cat = null; if ($wp->query_vars['category_name'] != null) { @@ -207,6 +221,12 @@ $search = $wp->query_vars['s']; } + // Get author name + $author_name = null; + if ($wp->query_vars['author_name'] != null) { + $author_name = $wp->query_vars['author_name']; + } + // Redirect comment feed if ($feed == 'comments-rss2' || is_single() || $withcomments) { if ($comment_url != null) { @@ -225,6 +245,8 @@ // If this is a category/tag feed and redirect is disabled, do nothing } else if ($search && $options['feedburner_no_search'] == 1) { // If this is a search result feed and redirect is disabled, do nothing + } else if ($author_name && $options['feedburner_no_author'] == 1) { + // If this is an author feed and redirect is disabled, do nothing } else { if ($feed_url != null) { // Redirect the feed @@ -242,4 +264,3 @@ ================================================== */ add_action('template_redirect', 'feedburner_redirect'); -?> \ No newline at end of file