Ticket #21394: 21394.general-template.diff
File 21394.general-template.diff, 1.1 KB (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
1648 1648 } elseif ( is_category() ) { 1649 1649 $term = get_queried_object(); 1650 1650 1651 $title = sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], $term->name ); 1652 $href = get_category_feed_link( $term->term_id ); 1651 if ( $term ) { 1652 $title = sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], $term->name ); 1653 $href = get_category_feed_link( $term->term_id ); 1654 } 1653 1655 } elseif ( is_tag() ) { 1654 1656 $term = get_queried_object(); 1655 1657 1656 $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name ); 1657 $href = get_tag_feed_link( $term->term_id ); 1658 if ( $term ) { 1659 $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name ); 1660 $href = get_tag_feed_link( $term->term_id ); 1661 } 1658 1662 } elseif ( is_author() ) { 1659 1663 $author_id = intval( get_query_var('author') ); 1660 1664