WordPress.org

Make WordPress Core

Changeset 22483


Ignore:
Timestamp:
11/09/2012 02:48:15 AM (9 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r21984 r22483  
    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
Note: See TracChangeset for help on using the changeset viewer.