Do not do canonical redirects for unregistered feeds. fixes #16704 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2bac601ee9
commit
011b0bd2b0
|
@ -195,7 +195,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
|||
}
|
||||
|
||||
$addl_path = '';
|
||||
if ( is_feed() ) {
|
||||
if ( is_feed() && in_array( get_query_var('feed'), $wp_rewrite->feeds ) ) {
|
||||
$addl_path = !empty( $addl_path ) ? trailingslashit($addl_path) : '';
|
||||
if ( get_query_var( 'withcomments' ) )
|
||||
$addl_path .= 'comments/';
|
||||
|
|
Loading…
Reference in New Issue