WordPress.org

Make WordPress Core

Ticket #21648: 21648.3.diff

File 21648.3.diff, 625 bytes (added by wonderboymusic, 20 months ago)
  • 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                $href = get_post_type_archive_feed_link( get_queried_object()->name );  
    16691669        }  
    16701670 
    16711671        if ( isset($title) && isset($href) )