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

git-svn-id: http://core.svn.wordpress.org/trunk@22483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-09 02:48:15 +00:00
parent dd504180f7
commit 6d0dc56a4d
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(); $href = get_search_feed_link();
} elseif ( is_post_type_archive() ) { } elseif ( is_post_type_archive() ) {
$title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) ); $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) ) if ( isset($title) && isset($href) )