WordPress.org

Make WordPress Core

Ticket #1790: category-title-in-category-feeds.patch

File category-title-in-category-feeds.patch, 1.9 KB (added by remi, 12 years ago)
  • wp-atom.php

     
    1616  xml:lang="<?php echo get_option('rss_language'); ?>" 
    1717  <?php do_action('atom_ns'); ?> 
    1818  > 
    19         <title><?php bloginfo_rss('name') ?></title> 
     19        <title><?php bloginfo_rss('name') ?><? if (single_cat_title("",false)) echo " (".single_cat_title("",false).")"; ?></title> 
    2020        <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> 
    2121        <tagline><?php bloginfo_rss("description") ?></tagline> 
    2222        <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified> 
  • wp-rss.php

     
    1313<!-- generator="wordpress/<?php echo $wp_version ?>" --> 
    1414<rss version="0.92"> 
    1515<channel> 
    16         <title><?php bloginfo_rss('name') ?></title> 
     16        <title><?php bloginfo_rss('name') ?><? if (single_cat_title("",false)) echo " (".single_cat_title("",false).")"; ?></title> 
    1717        <link><?php bloginfo_rss('url') ?></link> 
    1818        <description><?php bloginfo_rss('description') ?></description> 
    1919        <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 
  • wp-rss2.php

     
    2020> 
    2121 
    2222<channel> 
    23         <title><?php bloginfo_rss('name'); ?></title> 
     23        <title><?php bloginfo_rss('name'); ?><? if (single_cat_title("",false)) echo " (".single_cat_title("",false).")"; ?></title> 
    2424        <link><?php bloginfo_rss('url') ?></link> 
    2525        <description><?php bloginfo_rss("description") ?></description> 
    2626        <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>