Ue get_default_feed() for *_the_category_rss(). Props filosofo, peaceablewhale. fixes #5802
git-svn-id: https://develop.svn.wordpress.org/trunk@12197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3f51751c4d
commit
6266cbaf3b
@ -283,10 +283,12 @@ function comment_text_rss() {
|
||||
* @since 2.1.0
|
||||
* @uses apply_filters()
|
||||
*
|
||||
* @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'.
|
||||
* @param string $type Optional, default is the type returned by get_default_feed().
|
||||
* @return string All of the post categories for displaying in the feed.
|
||||
*/
|
||||
function get_the_category_rss($type = 'rss') {
|
||||
function get_the_category_rss($type = null) {
|
||||
if ( empty($type) )
|
||||
$type = get_default_feed();
|
||||
$categories = get_the_category();
|
||||
$tags = get_the_tags();
|
||||
$the_list = '';
|
||||
@ -326,9 +328,9 @@ function get_the_category_rss($type = 'rss') {
|
||||
* @since 0.71
|
||||
* @see get_the_category_rss() For better explanation.
|
||||
*
|
||||
* @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'.
|
||||
* @param string $type Optional, default is the type returned by get_default_feed().
|
||||
*/
|
||||
function the_category_rss($type = 'rss') {
|
||||
function the_category_rss($type = null) {
|
||||
echo get_the_category_rss($type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user