Make WordPress Core

Ticket #51839: 51839.diff

File 51839.diff, 534 bytes (added by peterwilsoncc, 4 years ago)
  • src/wp-includes/link-template.php

    diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
    index b5f400c20c..c4a0e5f7cb 100644
    a b function get_feed_link( $feed = '' ) { 
    625625
    626626        $permalink = $wp_rewrite->get_feed_permastruct();
    627627
    628         if ( '' !== $permalink ) {
     628        if ( $permalink ) {
    629629                if ( false !== strpos( $feed, 'comments_' ) ) {
    630630                        $feed      = str_replace( 'comments_', '', $feed );
    631631                        $permalink = $wp_rewrite->get_comment_feed_permastruct();