[wp-trac] [WordPress Trac] #51839: When get_feed_permastruct() return false, get_feed_link() return incorrect non feed url

WordPress Trac noreply at wordpress.org
Fri Nov 20 20:10:56 UTC 2020


#51839: When get_feed_permastruct() return false, get_feed_link() return incorrect
non feed url
--------------------------+-----------------------------
 Reporter:  hauvong       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  5.5
 Severity:  minor         |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 When $this->permalink_structure is empty & $this->feed_structure is not
 set, the function  get_feed_permastruct() would return boolean `false`
 causing get_feed_link() return incorrect non-feed url.

 ref: https://github.com/WordPress/wordpress-
 develop/blob/4f28c68eb61c656ba6ee3305ee066ff76d7e7403/src/wp-includes
 /link-template.php#L628

 Patch file to fix is attached.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51839>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list