WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2012 07:56:33 PM (9 years ago)
Author:
nacin
Message:

Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517.

File:
1 edited

Legend:

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

    r15984 r19784  
    2727    <description><?php bloginfo_rss("description") ?></description>
    2828    <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    29     <language><?php echo get_option('rss_language'); ?></language>
     29    <language><?php bloginfo_rss( 'language' ); ?></language>
    3030    <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    3131    <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
Note: See TracChangeset for help on using the changeset viewer.