Make WordPress Core


Ignore:
Timestamp:
03/02/2020 06:50:22 PM (5 years ago)
Author:
johnbillion
Message:

Feeds: Remove an unreachable condition when generating archive feed links.

Props donmhico, pbiron

Fixes #48427

File:
1 edited

Legend:

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

    r47397 r47406  
    30473047        $title = sprintf( $args['searchtitle'], get_bloginfo( 'name' ), $args['separator'], get_search_query( false ) );
    30483048        $href  = get_search_feed_link();
    3049     } elseif ( is_post_type_archive() ) {
    3050         $title         = sprintf( $args['posttypetitle'], get_bloginfo( 'name' ), $args['separator'], post_type_archive_title( '', false ) );
    3051         $post_type_obj = get_queried_object();
    3052         if ( $post_type_obj ) {
    3053             $href = get_post_type_archive_feed_link( $post_type_obj->name );
    3054         }
    30553049    }
    30563050
Note: See TracChangeset for help on using the changeset viewer.