From 6d0dc56a4de9fc352d610bf7c0338627ffc035aa Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 9 Nov 2012 02:48:15 +0000 Subject: [PATCH] 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 --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 939e9deed4..c7634bdcff 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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) )