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() ) { |
2747 | 2747 | } elseif ( is_search() ) { |
2748 | 2748 | $title = sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query( false ) ); |
2749 | 2749 | $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 ); |
2755 | 2750 | } |
2756 | 2751 | |
2757 | 2752 | if ( isset($title) && isset($href) ) |