Make WordPress Core


Ignore:
Timestamp:
04/18/2010 06:51:16 AM (16 years ago)
Author:
dd32
Message:

Advertise the correct comment feed link for a Page on the Front. Do not canonical redirect the front page comments feeds to home. Fixes #12452

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r14124 r14141  
    472472
    473473    if ( '' != get_option('permalink_structure') ) {
    474         $url = trailingslashit( get_permalink($post_id) ) . 'feed';
     474        if ( 'page' == get_option('show_on_front') && $post_id == get_option('page_on_front') )
     475            $url = _get_page_link( $post_id );
     476        else
     477            $url = get_permalink($post_id);
     478
     479        $url = trailingslashit($url) . 'feed';
    475480        if ( $feed != get_default_feed() )
    476481            $url .= "/$feed";
Note: See TracChangeset for help on using the changeset viewer.