mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 04:49:49 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f12d9995e7
commit
166860eeb3
@ -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 );
|
||||
@ -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 ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user