[wp-trac] [WordPress Trac] #50044: The function get_self_link() in feed.php does not include the port

WordPress Trac noreply at wordpress.org
Fri May 1 02:19:21 UTC 2020


#50044: The function get_self_link() in feed.php does not include the port
--------------------------+-----------------------------
 Reporter:  damienwhaley  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  template      |
--------------------------+-----------------------------
 Hi,

 The function get_self_link() in /wp-includes/feed.php re-constructs the
 URL for the website. This is used for the atom site URL.

 I have the situation where my WordPress site is running on a non-standard
 port. When the link for ATOM is constructed, it is missing the port.

 As an example my site is running at https://wp.example.com:8080

 But the get_self_link() prints it as https://wp.example.com

 This might be solved by this change set:
 https://core.trac.wordpress.org/changeset/45772

 Though in the time I spent looking it seems to be only used to generate
 the home root/home url of the site without any extra paths. It may or may
 not solve this problem correctly.

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


More information about the wp-trac mailing list