Consult the queried object for the post type. props mdgl, MikeHansenMe, wonderboymusic. fixes #21648.

git-svn-id: https://develop.svn.wordpress.org/trunk@22483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-09 02:48:15 +00:00
parent 1692eb9b95
commit eecbac5ca5
1 changed files with 1 additions and 1 deletions

View File

@ -1665,7 +1665,7 @@ function feed_links_extra( $args = array() ) {
$href = get_search_feed_link();
} elseif ( is_post_type_archive() ) {
$title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) );
$href = get_post_type_archive_feed_link( get_post_type() );
$href = get_post_type_archive_feed_link( get_queried_object()->name );
}
if ( isset($title) && isset($href) )