Feeds: Fix the URL returned by `get_feed_link()` when pretty permalinks are not in use.
Props hauvong, peterwilsoncc, SergeyBiryukov Fixes #51839 Built from https://develop.svn.wordpress.org/trunk@50354 git-svn-id: http://core.svn.wordpress.org/trunk@49965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ec94c354e2
commit
f955bcce54
|
@ -690,7 +690,7 @@ function get_feed_link( $feed = '' ) {
|
|||
|
||||
$permalink = $wp_rewrite->get_feed_permastruct();
|
||||
|
||||
if ( '' !== $permalink ) {
|
||||
if ( $permalink ) {
|
||||
if ( false !== strpos( $feed, 'comments_' ) ) {
|
||||
$feed = str_replace( 'comments_', '', $feed );
|
||||
$permalink = $wp_rewrite->get_comment_feed_permastruct();
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-beta2-50353';
|
||||
$wp_version = '5.7-beta2-50354';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue