Changeset 19096
- Timestamp:
- 10/31/2011 08:22:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r19094 r19096 1626 1626 1627 1627 if ( comments_open() || pings_open() || $post->comment_count > 0 ) { 1628 $title = esc_attr(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html( get_the_title() ) ));1628 $title = sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html( get_the_title() ) ); 1629 1629 $href = get_post_comments_feed_link( $post->ID ); 1630 1630 } … … 1632 1632 $term = get_queried_object(); 1633 1633 1634 $title = esc_attr(sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], $term->name ));1634 $title = sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], $term->name ); 1635 1635 $href = get_category_feed_link( $term->term_id ); 1636 1636 } elseif ( is_tag() ) { 1637 1637 $term = get_queried_object(); 1638 1638 1639 $title = esc_attr(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name ));1639 $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name ); 1640 1640 $href = get_tag_feed_link( $term->term_id ); 1641 1641 } elseif ( is_author() ) { 1642 1642 $author_id = intval( get_query_var('author') ); 1643 1643 1644 $title = esc_attr(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_the_author_meta( 'display_name', $author_id ) ));1644 $title = sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_the_author_meta( 'display_name', $author_id ) ); 1645 1645 $href = get_author_feed_link( $author_id ); 1646 1646 } elseif ( is_search() ) { 1647 $title = esc_attr(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query( false ) ));1647 $title = sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query( false ) ); 1648 1648 $href = get_search_feed_link(); 1649 1649 } 1650 1650 1651 1651 if ( isset($title) && isset($href) ) 1652 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . $title . '" href="' . $href. '" />' . "\n";1652 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( $title ) . '" href="' . esc_url( $href ) . '" />' . "\n"; 1653 1653 } 1654 1654
Note: See TracChangeset
for help on using the changeset viewer.