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
git-svn-id: http://svn.automattic.com/wordpress/trunk@14141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -471,7 +471,12 @@ function get_post_comments_feed_link($post_id = '', $feed = '') {
|
||||
$feed = get_default_feed();
|
||||
|
||||
if ( '' != get_option('permalink_structure') ) {
|
||||
$url = trailingslashit( get_permalink($post_id) ) . 'feed';
|
||||
if ( 'page' == get_option('show_on_front') && $post_id == get_option('page_on_front') )
|
||||
$url = _get_page_link( $post_id );
|
||||
else
|
||||
$url = get_permalink($post_id);
|
||||
|
||||
$url = trailingslashit($url) . 'feed';
|
||||
if ( $feed != get_default_feed() )
|
||||
$url .= "/$feed";
|
||||
$url = user_trailingslashit($url, 'single_feed');
|
||||
|
||||
Reference in New Issue
Block a user