Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

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