WordPress.org

Make WordPress Core

Changeset 12197


Ignore:
Timestamp:
11/17/2009 04:27:36 PM (9 years ago)
Author:
ryan
Message:

Ue get_default_feed() for *_the_category_rss(). Props filosofo, peaceablewhale. fixes #5802

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r11980 r12197  
    284284 * @uses apply_filters()
    285285 *
    286  * @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'.
     286 * @param string $type Optional, default is the type returned by get_default_feed().
    287287 * @return string All of the post categories for displaying in the feed.
    288288 */
    289 function get_the_category_rss($type = 'rss') {
     289function get_the_category_rss($type = null) {
     290    if ( empty($type) )
     291        $type = get_default_feed();
    290292    $categories = get_the_category();
    291293    $tags = get_the_tags();
     
    327329 * @see get_the_category_rss() For better explanation.
    328330 *
    329  * @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'.
    330  */
    331 function the_category_rss($type = 'rss') {
     331 * @param string $type Optional, default is the type returned by get_default_feed().
     332 */
     333function the_category_rss($type = null) {
    332334    echo get_the_category_rss($type);
    333335}
Note: See TracChangeset for help on using the changeset viewer.