Make WordPress Core

Changeset 2318


Ignore:
Timestamp:
02/14/2005 04:17:12 AM (21 years ago)
Author:
saxmatt
Message:

Allow RSS language - http://mosquito.wordpress.org/view.php?id=367

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-schema.php

    r2314 r2318  
    214214    add_option('comment_registration', 0);
    215215    add_option('open_proxy_check', 1);
     216    add_option('rss_language', 'en');
    216217
    217218    // Delete unused options
    218     $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'rss_language', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url');
     219    $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url');
    219220    foreach ($unusedoptions as $option) :
    220221        delete_option($option);
  • trunk/wp-atom.php

    r2284 r2318  
    1515<feed version="0.3"
    1616  xmlns="http://purl.org/atom/ns#"
    17   xmlns:dc="http://purl.org/dc/elements/1.1/">
     17  xmlns:dc="http://purl.org/dc/elements/1.1/"
     18  xml:lang="<?php echo get_option('rss_language'); ?>"
     19  >
    1820    <title><?php bloginfo_rss('name') ?></title>
    1921    <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
  • trunk/wp-rss.php

    r2272 r2318  
    1515<!-- generator="wordpress/<?php echo $wp_version ?>" -->
    1616<rss version="0.92">
    17     <channel>
    18         <title><?php bloginfo_rss('name') ?></title>
    19         <link><?php bloginfo_rss('url') ?></link>
    20         <description><?php bloginfo_rss('description') ?></description>
     17<channel>
     18    <title><?php bloginfo_rss('name') ?></title>
     19    <link><?php bloginfo_rss('url') ?></link>
     20    <description><?php bloginfo_rss('description') ?></description>
    2121    <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
    22         <docs>http://backend.userland.com/rss092</docs>
     22    <docs>http://backend.userland.com/rss092</docs>
     23    <language><?php echo get_option('rss_language'); ?></language>
    2324
    2425<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
    25         <item>
    26             <title><?php the_title_rss() ?></title>
    27 <?php
    28 if (get_settings('rss_use_excerpt')) {
    29 ?>
    30             <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    31 <?php
    32 } else { // use content
    33 ?>
    34             <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
    35 <?php
    36 } // end else use content
    37 ?>
    38             <link><?php permalink_single_rss() ?></link>
    39         </item>
     26    <item>
     27        <title><?php the_title_rss() ?></title>
     28<?php if (get_settings('rss_use_excerpt')) { ?>
     29        <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
     30<?php } else { // use content ?>
     31        <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
     32<?php } ?>
     33        <link><?php permalink_single_rss() ?></link>
     34    </item>
    4035<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
    41     </channel>
     36</channel>
    4237</rss>
  • trunk/wp-rss2.php

    r2272 r2318  
    2727    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></pubDate>
    2828    <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
     29    <language><?php echo get_option('rss_language'); ?></language>
    2930
    3031    <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
Note: See TracChangeset for help on using the changeset viewer.