WordPress.org

Make WordPress Core

Ticket #13440: 13440.diff

File 13440.diff, 7.7 KB (added by nacin, 3 years ago)
  • wp-includes/feed-rss2.php

     
    2626        <link><?php bloginfo_rss('url') ?></link> 
    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> 
    3232        <?php do_action('rss2_head'); ?> 
  • wp-includes/feed-atom.php

     
    1212<feed 
    1313  xmlns="http://www.w3.org/2005/Atom" 
    1414  xmlns:thr="http://purl.org/syndication/thread/1.0" 
    15   xml:lang="<?php echo get_option('rss_language'); ?>" 
     15  xml:lang="<?php bloginfo_rss( 'language' ); ?>" 
    1616  xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php" 
    1717  <?php do_action('atom_ns'); ?> 
    1818 > 
  • wp-includes/feed-rss.php

     
    1616        <description><?php bloginfo_rss('description') ?></description> 
    1717        <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 
    1818        <docs>http://backend.userland.com/rss092</docs> 
    19         <language><?php echo get_option('rss_language'); ?></language> 
     19        <language><?php bloginfo_rss( 'language' ); ?></language> 
    2020        <?php do_action('rss_head'); ?> 
    2121 
    2222<?php while (have_posts()) : the_post(); ?> 
  • wp-includes/feed-atom-comments.php

     
    1010?> 
    1111<feed 
    1212        xmlns="http://www.w3.org/2005/Atom" 
    13         xml:lang="<?php echo get_option('rss_language'); ?>" 
     13        xml:lang="<?php bloginfo_rss( 'language' ); ?>" 
    1414        xmlns:thr="http://purl.org/syndication/thread/1.0" 
    1515        <?php do_action('atom_ns'); do_action('atom_comments_ns'); ?> 
    1616> 
  • wp-app.php

     
    10771077                $prev_page = ($page - 1) < 1 ? null : $page - 1; 
    10781078                $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? null : (int) $last_page; 
    10791079                $self_page = $page > 1 ? $page : null; 
    1080 ?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>" <?php do_action('app_ns'); ?> > 
     1080?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php bloginfo_rss( 'language' ); ?>" <?php do_action('app_ns'); ?> > 
    10811081<id><?php $this->the_entries_url() ?></id> 
    10821082<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> 
    10831083<title type="text"><?php bloginfo_rss('name') ?></title> 
     
    11501150         */ 
    11511151        function echo_entry() { ?> 
    11521152<entry xmlns="<?php echo $this->ATOM_NS ?>" 
    1153        xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>"> 
     1153       xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php bloginfo_rss( 'language' ); ?>"> 
    11541154        <id><?php the_guid( $GLOBALS['post']->ID ); ?></id> 
    11551155<?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?> 
    11561156        <title type="<?php echo $content_type ?>"><?php echo $content ?></title> 
  • wp-admin/includes/schema.php

     
    409409        'comment_whitelist' => 1, 
    410410        'blacklist_keys' => '', 
    411411        'comment_registration' => 0, 
    412         'rss_language' => 'en', 
    413412        'html_type' => 'text/html', 
    414413 
    415414        // 1.5.1 
     
    524523        if ( !__get_option('home') ) update_option('home', $guessurl); 
    525524 
    526525        // Delete unused options 
    527         $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', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show'); 
     526        $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', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show', 'rss_language', 
    528527        foreach ( $unusedoptions as $option ) 
    529528                delete_option($option); 
    530529 
  • wp-admin/includes/export.php

     
    331331        <link><?php bloginfo_rss( 'url' ); ?></link> 
    332332        <description><?php bloginfo_rss( 'description' ); ?></description> 
    333333        <pubDate><?php echo date( 'D, d M Y H:i:s +0000' ); ?></pubDate> 
    334         <language><?php echo get_option( 'rss_language' ); ?></language> 
     334        <language><?php bloginfo_rss( 'language' ); ?></language> 
    335335        <wp:wxr_version><?php echo WXR_VERSION; ?></wp:wxr_version> 
    336336        <wp:base_site_url><?php echo wxr_site_url(); ?></wp:base_site_url> 
    337337        <wp:base_blog_url><?php bloginfo_rss( 'url' ); ?></wp:base_blog_url>