Make WordPress Core

Changeset 52959


Ignore:
Timestamp:
03/20/2022 03:03:39 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct variable references in get_category_feed_link() and 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r52553 r52959  
    905905 * @since 2.5.0
    906906 *
    907  * @param int|WP_Term|object $cat  The ID or term object whose feed link will be retrieved.
     907 * @param int|WP_Term|object $cat  The ID or category object whose feed link will be retrieved.
    908908 * @param string             $feed Optional. Feed type. Possible values include 'rss2', 'atom'.
    909909 *                                 Default is the value of get_default_feed().
    910  * @return string Link to the feed for the category specified by $cat_id.
     910 * @return string Link to the feed for the category specified by `$cat`.
    911911 */
    912912function get_category_feed_link( $cat, $feed = '' ) {
     
    926926 * @param string             $feed     Optional. Feed type. Possible values include 'rss2', 'atom'.
    927927 *                                     Default is the value of get_default_feed().
    928  * @return string|false Link to the feed for the term specified by $term_id and $taxonomy.
     928 * @return string|false Link to the feed for the term specified by `$term` and `$taxonomy`.
    929929 */
    930930function get_term_feed_link( $term, $taxonomy = '', $feed = '' ) {
Note: See TracChangeset for help on using the changeset viewer.