Ticket #9515: link-template.php-trunk.patch
File link-template.php-trunk.patch, 1.7 KB (added by , 16 years ago) |
---|
-
link-template.php
468 468 $feed = get_default_feed(); 469 469 470 470 if ( '' == $permalink_structure ) { 471 $link = get_option('home') . " ?feed=$feed&author=" . $author_id;471 $link = get_option('home') . "/?feed=$feed&author=" . $author_id; 472 472 } else { 473 473 $link = get_author_posts_url($author_id); 474 474 if ( $feed == get_default_feed() ) … … 512 512 $permalink_structure = get_option('permalink_structure'); 513 513 514 514 if ( '' == $permalink_structure ) { 515 $link = trailingslashit( get_option('home') ) . "?feed=$feed&cat=" . $cat_id;515 $link = get_option('home') . "/?feed=$feed&cat=" . $cat_id; 516 516 } else { 517 517 $link = get_category_link($cat_id); 518 518 if( $feed == get_default_feed() ) … … 551 551 $feed = get_default_feed(); 552 552 553 553 if ( '' == $permalink_structure ) { 554 $link = get_option('home') . " ?feed=$feed&tag=" . $tag->slug;554 $link = get_option('home') . "/?feed=$feed&tag=" . $tag->slug; 555 555 } else { 556 556 $link = get_tag_link($tag->term_id); 557 557 if ( $feed == get_default_feed() ) … … 626 626 if ( empty($feed) ) 627 627 $feed = get_default_feed(); 628 628 629 $link = get_option('home') . " ?s=$search&feed=$feed";629 $link = get_option('home') . "/?s=$search&feed=$feed"; 630 630 631 631 $link = apply_filters('search_feed_link', $link); 632 632 … … 651 651 if ( empty($feed) ) 652 652 $feed = get_default_feed(); 653 653 654 $link = get_option('home') . " ?s=$search&feed=comments-$feed";654 $link = get_option('home') . "/?s=$search&feed=comments-$feed"; 655 655 656 656 $link = apply_filters('search_feed_link', $link); 657 657