Make WordPress Core

Changeset 28258


Ignore:
Timestamp:
05/05/2014 07:04:39 PM (11 years ago)
Author:
wonderboymusic
Message:

When $type is atom in get_the_category_rss(), use get_bloginfo_rss( 'url' ) when setting the scheme attribute for the <category> node.

Props ejdanderson.
Fixes #24444.

File:
1 edited

Legend:

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

    r27262 r28258  
    391391        elseif ( 'atom' == $type )
    392392            /** This filter is documented in wp-includes/feed.php */
    393             $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), esc_attr( $cat_name ) );
     393            $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( get_bloginfo_rss( 'url' ) ), esc_attr( $cat_name ) );
    394394        else
    395395            $the_list .= "\t\t<category><![CDATA[" . @html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n";
Note: See TracChangeset for help on using the changeset viewer.