Make WordPress Core

Changeset 21332


Ignore:
Timestamp:
07/25/2012 06:04:17 PM (14 years ago)
Author:
ryan
Message:

Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-atom-comments.php

    r19784 r21332  
    1717        <title type="text"><?php
    1818                if ( is_singular() )
    19                         printf(ent2ncr(__('Comments on %s')), get_the_title_rss());
     19                        printf( ent2ncr( __( 'Comments on %s' ) ), get_the_title_rss() );
    2020                elseif ( is_search() )
    21                         printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), get_search_query() );
     21                        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_bloginfo_rss( 'name' ) . get_wp_title_rss() );
    2424        ?></title>
    2525        <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle>
  • trunk/wp-includes/feed-rss2-comments.php

    r21238 r21332  
    2020        <title><?php
    2121                if ( is_singular() )
    22                         printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
     22                        printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() );
    2323                elseif ( is_search() )
    24                         printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s']));
     24                        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_bloginfo_rss( 'name' ) . get_wp_title_rss() );
    2727        ?></title>
    2828        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
Note: See TracChangeset for help on using the changeset viewer.