From a543c31a1d0f6a86c664e5225f3befe03fb91807 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 18 Sep 2024 19:06:45 +0000 Subject: [PATCH] Docs: The `$feedname` parameter in `add_feed()` should not start with an underscore. Props snehapatil02, hellofromtonya, narenin. Fixes #59945. git-svn-id: https://develop.svn.wordpress.org/trunk@59059 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rewrite.php b/src/wp-includes/rewrite.php index 647977cc2041e..235c0c82e25f6 100644 --- a/src/wp-includes/rewrite.php +++ b/src/wp-includes/rewrite.php @@ -244,7 +244,7 @@ function remove_permastruct( $name ) { * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * - * @param string $feedname Feed name. + * @param string $feedname Feed name. Should not start with '_'. * @param callable $callback Callback to run on feed display. * @return string Feed action name. */