Make WordPress Core

Ticket #43860: 43860.diff

File 43860.diff, 827 bytes (added by dmenard, 7 years ago)

Remove duplicate elseif clause in feed_links_extra()

  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 57a7b67..8bb3484 100644
    a b function feed_links_extra( $args = array() ) { 
    27962796        } elseif ( is_search() ) {
    27972797                $title = sprintf( $args['searchtitle'], get_bloginfo( 'name' ), $args['separator'], get_search_query( false ) );
    27982798                $href  = get_search_feed_link();
    2799         } elseif ( is_post_type_archive() ) {
    2800                 $title         = sprintf( $args['posttypetitle'], get_bloginfo( 'name' ), $args['separator'], post_type_archive_title( '', false ) );
    2801                 $post_type_obj = get_queried_object();
    2802                 if ( $post_type_obj ) {
    2803                         $href = get_post_type_archive_feed_link( $post_type_obj->name );
    2804                 }
    28052799        }
    28062800
    28072801        if ( isset( $title ) && isset( $href ) ) {