mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user