Changes in trunk/wp-includes/feed.php [12197:11980]
- File:
-
- 1 edited
-
trunk/wp-includes/feed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r12197 r11980 284 284 * @uses apply_filters() 285 285 * 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'. 287 287 * @return string All of the post categories for displaying in the feed. 288 288 */ 289 function get_the_category_rss($type = null) { 290 if ( empty($type) ) 291 $type = get_default_feed(); 289 function get_the_category_rss($type = 'rss') { 292 290 $categories = get_the_category(); 293 291 $tags = get_the_tags(); … … 329 327 * @see get_the_category_rss() For better explanation. 330 328 * 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 */ 331 function the_category_rss($type = 'rss') { 334 332 echo get_the_category_rss($type); 335 333 }
Note: See TracChangeset
for help on using the changeset viewer.