[wp-trac] [WordPress Trac] #33693: Feed links are broken for unattached attachments

WordPress Trac noreply at wordpress.org
Wed Sep 2 19:56:40 UTC 2015


#33693: Feed links are broken for unattached attachments
--------------------------+----------------------------------------
 Reporter:  swissspidy    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:                |
--------------------------+----------------------------------------
 As per #33664, a media item that isn't attached to a post has a permalink
 of the form `http://example.org/?attachment_id=123`.

 When you visit that page, you'll notice that the comments feed links for
 this attachment posts are wrong, looking something like this:
 `http://example.org/?attachment_id=123/feed/`.

 This is because `get_post_comments_feed_link()` just appends `/feed/` to
 the permalink if pretty permalinks are enabled. It should check for this
 scenario though.

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


More information about the wp-trac mailing list