WordPress.org

Make WordPress Core

Ticket #23677: 23677-refresh.diff

File 23677-refresh.diff, 1.3 KB (added by stevenkword, 5 years ago)
  • wp-includes/general-template.php

     
    22632263                'cattitle'    => __('%1$s %2$s %3$s Category Feed'),
    22642264                /* translators: 1: blog name, 2: separator(raquo), 3: tag name */
    22652265                'tagtitle'    => __('%1$s %2$s %3$s Tag Feed'),
     2266                /* translators: 1: blog name, 2: separator(raquo), 3: term name, 4: taxonomy singular name */
     2267                'taxtitle'    => __('%1$s %2$s %3$s %4$s Feed'),
    22662268                /* translators: 1: blog name, 2: separator(raquo), 3: author name  */
    22672269                'authortitle' => __('%1$s %2$s Posts by %3$s Feed'),
    22682270                /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */
     
    23032305                        $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name );
    23042306                        $href = get_tag_feed_link( $term->term_id );
    23052307                }
     2308        } elseif ( is_tax() ) {
     2309                $term = get_queried_object();
     2310                $tax = get_taxonomy( $term->taxonomy );
     2311                $title = sprintf( $args['taxtitle'], get_bloginfo('name'), $args['separator'], $term->name, $tax->labels->singular_name );
     2312                $href = get_term_feed_link( $term->term_id, $term->taxonomy );
    23062313        } elseif ( is_author() ) {
    23072314                $author_id = intval( get_query_var('author') );
    23082315