From 0f2f9467367e9e7bd51beb1099838dc133302017 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Oct 2015 03:13:31 +0000 Subject: [PATCH] Feeds: Remove a confusing comment from `add_feed()`, added in [3638]. It always overrides the default callback if it's set, regardless of the `in_array()` check. See #34259. git-svn-id: https://develop.svn.wordpress.org/trunk@35121 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rewrite-functions.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-includes/rewrite-functions.php b/src/wp-includes/rewrite-functions.php index 6e96edd455..a42535b4a4 100644 --- a/src/wp-includes/rewrite-functions.php +++ b/src/wp-includes/rewrite-functions.php @@ -100,7 +100,6 @@ function add_feed( $feedname, $function ) { global $wp_rewrite; if ( ! in_array( $feedname, $wp_rewrite->feeds ) ) { - // Override the file if it is $wp_rewrite->feeds[] = $feedname; }