[wp-trac] [WordPress Trac] #34972: Permalink for unattached media same as a post
WordPress Trac
noreply at wordpress.org
Sun Dec 18 18:08:15 UTC 2016
#34972: Permalink for unattached media same as a post
------------------------------------------+-----------------------------
Reporter: petercralen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Permalinks | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by mdgl):
Sorry I'm new to this one but have just noticed similar problems with the
permalinks for unattached media on my site.
It seems that the changes released in 4.4 under #1914 mean that permalinks
of the form `site/%media-file-name%/` are now generated for all unattached
media items. It does not seem to be possible to change this generated
permalink once the media item has been uploaded.
Although this may be considered an improvement, it seems likely to cause
much opportunity for duplicate/clashing permalinks with other pages, posts
or custom post types. You now need to be very careful to consider the file
names of media before you upload!
At the very least, I suspect such permalinks should be individually
editable in the same way as they are for pages and posts. It should
probably also be possible to set a "base" for these permalinks using the
Settings->Permalinks screen and similar to categories and tags, so that
the site namespace can be managed properly (e.g. by pushing all unattached
media under the path `site/media/` or similar).
As I see it, for too long WordPress has confused the meaning of media,
images and attachments. A longer term plan would also be useful to
resolve this and provide improved management of such content.
See also #35529.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34972#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list