WordPress.org

Make WordPress Core

Ticket #21648: 21648.2.diff

File 21648.2.diff, 663 bytes (added by MikeHansenMe, 18 months ago)

update based on comment 8

  • wp-includes/general-template.php

     
    16651665                $href = get_search_feed_link(); 
    16661666        } elseif ( is_post_type_archive() ) {  
    16671667                $title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) );  
    1668                 $href = get_post_type_archive_feed_link( get_post_type() );  
     1668                $post_type_obj = get_queried_object(); 
     1669                $href = get_post_type_archive_feed_link( $post_type_obj->name ); 
    16691670        }  
    16701671 
    16711672        if ( isset($title) && isset($href) )