Ticket #21648: 21648.diff
File 21648.diff, 1020 bytes (added by , 13 years ago) |
---|
-
general-template.php
old new 1633 1633 'authortitle' => __('%1$s %2$s Posts by %3$s Feed'), 1634 1634 /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */ 1635 1635 'searchtitle' => __('%1$s %2$s Search Results for “%3$s” Feed'), 1636 /* translators: 1: blog name, 2: separator(raquo), 3: post type name */ 1637 'posttypetitle' => __('%1$s %2$s %3$s Post Type Feed'), 1636 1638 ); 1637 1639 1638 1640 $args = wp_parse_args( $args, $defaults ); … … 1663 1665 } elseif ( is_search() ) { 1664 1666 $title = sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query( false ) ); 1665 1667 $href = get_search_feed_link(); 1668 } elseif ( is_post_type_archive() ) { 1669 $title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) ); 1670 $href = get_post_type_archive_feed_link( get_post_type() ); 1666 1671 } 1667 1672 1668 1673 if ( isset($title) && isset($href) )