Changeset 10532
- Timestamp:
- 02/09/2009 10:59:54 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r10467 r10532 1411 1411 $args = wp_parse_args( $args, $defaults ); 1412 1412 1413 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['rsstitle'], get_bloginfo('name')) . '" href="' . get_feed_link() . "\" />\n";1414 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['comstitle'], get_bloginfo('name')) . '" href="' . get_feed_link( 'comments_' . get_default_feed() ) . "\" />\n";1413 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['rsstitle'], get_bloginfo('name') )) . '" href="' . get_feed_link() . "\" />\n"; 1414 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['comstitle'], get_bloginfo('name') )) . '" href="' . get_feed_link( 'comments_' . get_default_feed() ) . "\" />\n"; 1415 1415 } 1416 1416 … … 1437 1437 $post = &get_post( $id = 0 ); 1438 1438 if ( comments_open() || pings_open() || $post->comment_count > 0 ) 1439 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['singletitle'], get_bloginfo('name'), $args['seperator'], wp_specialchars( get_the_title() )) . '" href="' . get_post_comments_feed_link( $post->ID ) . "\" />\n";1439 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['seperator'], wp_specialchars( get_the_title() ) )) . '" href="' . get_post_comments_feed_link( $post->ID ) . "\" />\n"; 1440 1440 } 1441 1441 1442 1442 elseif ( is_category() ) { 1443 1443 $cat_id = intval( get_query_var('cat') ); 1444 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['cattitle'], get_bloginfo('name'), $args['seperator'], get_cat_name( $cat_id )) . '" href="' . get_category_feed_link( $cat_id ) . "\" />\n";1444 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['seperator'], get_cat_name( $cat_id ) )) . '" href="' . get_category_feed_link( $cat_id ) . "\" />\n"; 1445 1445 } 1446 1446 … … 1448 1448 $tag_id = intval( get_query_var('tag_id') ); 1449 1449 $tag = get_tag( $tag_id ); 1450 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['tagtitle'], get_bloginfo('name'), $args['seperator'], $tag->name) . '" href="' . get_tag_feed_link( $tag_id ) . "\" />\n";1450 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['seperator'], $tag->name )) . '" href="' . get_tag_feed_link( $tag_id ) . "\" />\n"; 1451 1451 } 1452 1452 1453 1453 elseif ( is_author() ) { 1454 1454 $author_id = intval( get_query_var('author') ); 1455 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['authortitle'], get_bloginfo('name'), $args['seperator'], get_author_name( $author_id )) . '" href="' . get_author_feed_link( $author_id ) . "\" />\n";1455 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['seperator'], get_author_name( $author_id ) )) . '" href="' . get_author_feed_link( $author_id ) . "\" />\n"; 1456 1456 } 1457 1457 1458 1458 elseif ( is_search() ) { 1459 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . sprintf( $args['searchtitle'], get_bloginfo('name'), $args['seperator'], get_search_query()) . '" href="' . get_search_feed_link() . "\" />\n";1459 echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['seperator'], get_search_query() )) . '" href="' . get_search_feed_link() . "\" />\n"; 1460 1460 } 1461 1461 }
Note: See TracChangeset
for help on using the changeset viewer.