Make WordPress Core

Ticket #21366: 21366.2.patch

File 21366.2.patch, 4.2 KB (added by SergeyBiryukov, 13 years ago)

Refreshed after [21332]

  • wp-includes/feed-atom-comments.php

     
    2020                elseif ( is_search() )
    2121                        printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
    2222                else
    23                         printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() );
     23                        printf( ent2ncr( __( 'Comments for %s' ) ), get_wp_title_rss() );
    2424        ?></title>
    2525        <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle>
    2626
  • wp-includes/feed-atom.php

     
    1616  xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php"
    1717  <?php do_action('atom_ns'); ?>
    1818 >
    19         <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
     19        <title type="text"><?php wp_title_rss(); ?></title>
    2020        <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
    2121
    2222        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
  • wp-includes/feed-rdf.php

     
    1919        <?php do_action('rdf_ns'); ?>
    2020>
    2121<channel rdf:about="<?php bloginfo_rss("url") ?>">
    22         <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
     22        <title><?php wp_title_rss(); ?></title>
    2323        <link><?php bloginfo_rss('url') ?></link>
    2424        <description><?php bloginfo_rss('description') ?></description>
    2525        <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
  • wp-includes/feed-rss.php

     
    1111echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    1212<rss version="0.92">
    1313<channel>
    14         <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
     14        <title><?php wp_title_rss(); ?></title>
    1515        <link><?php bloginfo_rss('url') ?></link>
    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>
  • wp-includes/feed-rss2-comments.php

     
    2323                elseif ( is_search() )
    2424                        printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
    2525                else
    26                         printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() );
     26                        printf( ent2ncr( __( 'Comments for %s' ) ), get_wp_title_rss() );
    2727        ?></title>
    2828        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    2929        <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
  • wp-includes/feed-rss2.php

     
    2121>
    2222
    2323<channel>
    24         <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
     24        <title><?php wp_title_rss(); ?></title>
    2525        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    2626        <link><?php bloginfo_rss('url') ?></link>
    2727        <description><?php bloginfo_rss("description") ?></description>
  • wp-includes/feed.php

     
    8383        $title = wp_title($sep, false);
    8484        if ( is_wp_error( $title ) )
    8585                return $title->get_error_message();
     86        if ( false === strpos( $title, get_bloginfo_rss( 'name' ) ) )
     87                $title = get_bloginfo_rss( 'name' ) . $title;
    8688        $title = apply_filters('get_wp_title_rss', $title);
    8789        return $title;
    8890}