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