WordPress.org

Make WordPress Core

Ticket #23677: 23677-refresh.2.diff

File 23677-refresh.2.diff, 1.3 KB (added by stevenkword, 4 years ago)

Refresh relative to /src

  • src/wp-includes/general-template.php

     
    25352535                'cattitle'    => __('%1$s %2$s %3$s Category Feed'),
    25362536                /* translators: 1: blog name, 2: separator(raquo), 3: tag name */
    25372537                'tagtitle'    => __('%1$s %2$s %3$s Tag Feed'),
     2538                /* translators: 1: blog name, 2: separator(raquo), 3: term name, 4: taxonomy singular name */
     2539                'taxtitle'    => __('%1$s %2$s %3$s %4$s Feed'),
    25382540                /* translators: 1: blog name, 2: separator(raquo), 3: author name  */
    25392541                'authortitle' => __('%1$s %2$s Posts by %3$s Feed'),
    25402542                /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */
     
    25752577                        $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name );
    25762578                        $href = get_tag_feed_link( $term->term_id );
    25772579                }
     2580        } elseif ( is_tax() ) {
     2581                $term = get_queried_object();
     2582                $tax = get_taxonomy( $term->taxonomy );
     2583                $title = sprintf( $args['taxtitle'], get_bloginfo('name'), $args['separator'], $term->name, $tax->labels->singular_name );
     2584                $href = get_term_feed_link( $term->term_id, $term->taxonomy );
    25782585        } elseif ( is_author() ) {
    25792586                $author_id = intval( get_query_var('author') );
    25802587