Ticket #5802: 5802.patch
File 5802.patch, 1.1 KB (added by , 15 years ago) |
---|
-
feed.php
311 311 * @since 2.1.0 312 312 * @uses apply_filters() 313 313 * 314 * @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'.314 * @param string $type Optional, default is the type returned by get_default_feed(). 315 315 * @return string All of the post categories for displaying in the feed. 316 316 */ 317 function get_the_category_rss($type = 'rss') { 317 function get_the_category_rss($type = null) { 318 if(empty($type)) { 319 $type = get_default_feed(); 320 } 318 321 $categories = get_the_category(); 319 322 $tags = get_the_tags(); 320 323 $the_list = ''; … … 354 357 * @since 0.71 355 358 * @see get_the_category_rss() For better explanation. 356 359 * 357 * @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'.360 * @param string $type Optional, default is the type returned by get_default_feed(). 358 361 */ 359 function the_category_rss($type = 'rss') { 362 function the_category_rss($type = null) { 363 if(empty($type)) { 364 $type = get_default_feed(); 365 } 360 366 echo get_the_category_rss($type); 361 367 } 362 368