Skip to content

Commit

Permalink
Docs: Correct variable references in get_category_feed_link() and `…
Browse files Browse the repository at this point in the history
…get_term_feed_link()` `@return` tags.

The `$cat_id` and `$term_id` variables were replaced by `$cat` and `$term`, respectively.

Follow-up to [52180].

See #54729.

git-svn-id: https://develop.svn.wordpress.org/trunk@52959 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 20, 2022
1 parent f12d999 commit 166860e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-includes/link-template.php
Expand Up @@ -904,10 +904,10 @@ function get_author_feed_link( $author_id, $feed = '' ) {
*
* @since 2.5.0
*
* @param int|WP_Term|object $cat The ID or term object whose feed link will be retrieved.
* @param int|WP_Term|object $cat The ID or category object whose feed link will be retrieved.
* @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'.
* Default is the value of get_default_feed().
* @return string Link to the feed for the category specified by $cat_id.
* @return string Link to the feed for the category specified by `$cat`.
*/
function get_category_feed_link( $cat, $feed = '' ) {
return get_term_feed_link( $cat, 'category', $feed );
Expand All @@ -925,7 +925,7 @@ function get_category_feed_link( $cat, $feed = '' ) {
* @param string $taxonomy Optional. Taxonomy of `$term_id`.
* @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'.
* Default is the value of get_default_feed().
* @return string|false Link to the feed for the term specified by $term_id and $taxonomy.
* @return string|false Link to the feed for the term specified by `$term` and `$taxonomy`.
*/
function get_term_feed_link( $term, $taxonomy = '', $feed = '' ) {
if ( ! is_object( $term ) ) {
Expand Down

0 comments on commit 166860e

Please sign in to comment.