Make WordPress Core

Ticket #48427: 48427.diff

File 48427.diff, 825 bytes (added by donmhico, 2 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index 344d9276fb..8a6df418ad 100644
    function feed_links_extra( $args = array() ) { 
    30353035        } elseif ( is_search() ) {
    30363036                $title = sprintf( $args['searchtitle'], get_bloginfo( 'name' ), $args['separator'], get_search_query( false ) );
    30373037                $href  = get_search_feed_link();
    3038         } elseif ( is_post_type_archive() ) {
    3039                 $title         = sprintf( $args['posttypetitle'], get_bloginfo( 'name' ), $args['separator'], post_type_archive_title( '', false ) );
    3040                 $post_type_obj = get_queried_object();
    3041                 if ( $post_type_obj ) {
    3042                         $href = get_post_type_archive_feed_link( $post_type_obj->name );
    3043                 }
    30443038        }
    30453039
    30463040        if ( isset( $title ) && isset( $href ) ) {