WordPress.org

Make WordPress Core

Ticket #44071: feed-link.patch

File feed-link.patch, 1.1 KB (added by akshayar, 22 months ago)
  • wp-includes/general-template.php

    From e5fc5ab61240e238a8ec873620f47edb46748b66 Mon Sep 17 00:00:00 2001
    From: "akshaya.rane" <akshaya.rane@wisdmlabs.com>
    Date: Mon, 14 May 2018 15:30:11 +0530
    Subject: [PATCH] Removed additional 'is_post_type_archive' condition from
     feed_links_extra() function
    
    ---
     wp-includes/general-template.php | 5 -----
     1 file changed, 5 deletions(-)
    
    diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
    index 4ceaaa9..49176b7 100644
    a b function feed_links_extra( $args = array() ) { 
    27472747        } elseif ( is_search() ) {
    27482748                $title = sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query( false ) );
    27492749                $href = get_search_feed_link();
    2750         } elseif ( is_post_type_archive() ) {
    2751                 $title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) );
    2752                 $post_type_obj = get_queried_object();
    2753                 if ( $post_type_obj )
    2754                         $href = get_post_type_archive_feed_link( $post_type_obj->name );
    27552750        }
    27562751
    27572752        if ( isset($title) && isset($href) )