Make WordPress Core

Changeset 50354


Ignore:
Timestamp:
02/16/2021 05:32:58 PM (4 years ago)
Author:
johnbillion
Message:

Feeds: Fix the URL returned by get_feed_link() when pretty permalinks are not in use.

Props hauvong, peterwilsoncc, SergeyBiryukov

Fixes #51839

Location:
trunk
Files:
1 added
1 edited

Legend:

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

    r50340 r50354  
    691691    $permalink = $wp_rewrite->get_feed_permastruct();
    692692
    693     if ( '' !== $permalink ) {
     693    if ( $permalink ) {
    694694        if ( false !== strpos( $feed, 'comments_' ) ) {
    695695            $feed      = str_replace( 'comments_', '', $feed );
Note: See TracChangeset for help on using the changeset viewer.