[wp-trac] [WordPress Trac] #52373: URL returned by get_attachment_link() can 404.
WordPress Trac
noreply at wordpress.org
Wed Jan 27 03:07:34 UTC 2021
#52373: URL returned by get_attachment_link() can 404.
--------------------------------------+------------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by peterwilsoncc):
> If pretty URLs are enabled, the URL should return `w.org/attachment
/attachment-name` as the permalink.
This is only true for the `%postname%` permalink structure.
If pretty URLs are enabled, the URL should return a URL in the same format
as the `post` post type, but with `attachment/attachment-name` as the
`%postname%` replacement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52373#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list