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:
parent
dd504180f7
commit
6d0dc56a4d
|
@ -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) )
|
||||||
|
|
Loading…
Reference in New Issue