Make WordPress Core

Ticket #1790: 1790.2.diff

File 1790.2.diff, 2.8 KB (added by rob1n, 19 years ago)
  • wp-includes/feed-rss2.php

     
    1414>
    1515
    1616<channel>
    17         <title><?php bloginfo_rss('name'); ?></title>
     17        <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    1818        <link><?php bloginfo_rss('url') ?></link>
    1919        <description><?php bloginfo_rss("description") ?></description>
    2020        <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
  • wp-includes/feed-atom.php

     
    1111  xml:base="<?php bloginfo_rss('home') ?>/wp-atom.php"
    1212  <?php do_action('atom_ns'); ?>
    1313 >
    14         <title type="text"><?php bloginfo_rss('name') ?></title>
     14        <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    1515        <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
    1616
    1717        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
  • wp-includes/feed.php

     
    1616        return $title;
    1717}
    1818
     19function wp_title_rss($sep = '&#187;') {
     20        echo apply_filters('wp_title_rss', get_wp_title_rss($sep));
     21}
     22
    1923function get_the_title_rss() {
    2024        $title = get_the_title();
    2125        $title = apply_filters('the_title', $title);
  • wp-includes/feed-rss.php

     
    77<!-- generator="wordpress/<?php echo $wp_version ?>" -->
    88<rss version="0.92">
    99<channel>
    10         <title><?php bloginfo_rss('name') ?></title>
     10        <title><?php bloginfo('name'); wp_title_rss(); ?></title>
    1111        <link><?php bloginfo_rss('url') ?></link>
    1212        <description><?php bloginfo_rss('description') ?></description>
    1313        <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
  • wp-includes/feed-rdf.php

     
    1515        <?php do_action('rdf_ns'); ?>
    1616>
    1717<channel rdf:about="<?php bloginfo_rss("url") ?>">
    18         <title><?php bloginfo_rss('name') ?></title>
     18        <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    1919        <link><?php bloginfo_rss('url') ?></link>
    2020        <description><?php bloginfo_rss('description') ?></description>
    2121        <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>