Skip to content

Commit

Permalink
Docs: The $feedname parameter in add_feed() should not start with…
Browse files Browse the repository at this point in the history
… an underscore.

Props snehapatil02, hellofromtonya, narenin.
Fixes #59945.


git-svn-id: https://develop.svn.wordpress.org/trunk@59059 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
DrewAPicture committed Sep 18, 2024
1 parent 55aa76a commit a543c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/rewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit a543c31

Please sign in to comment.