#55500 closed enhancement (invalid)
Ability to change slug of Attachments
Reported by: | nidhishanker | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.9.2 |
Component: | Media | Keywords: | reporter-feedback |
Focuses: | performance | Cc: |
Description
As WordPress facilitates to change permalink/slug of Post Types, it is suggested to enable editing the slug of Attached Media.
Right now after uploading an image, it is possible to update all information except the media slug.
In my case, the slug had some encrypted or random character and now I want to change the slug of Attachment.
Note: Required screenshots are attached.
[]
Attachments (2)
Change History (9)
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
2 years ago
#3
@
2 years ago
- Keywords reporter-feedback added; needs-patch removed
Hi @nidhishanker ! There was some discussion about this in a recent media meeting and we had some concerns around this feature giving folks the ability to break content without knowing. In posts, it is easy to change slugs and redirect as we need because it is the final content rendered when making a request. For attachments it could conflict with existing content.
Do you have any thoughts around how this could be avoided? Ideally a feature like this would account for all uses of the Media to update them, but I suspect theres some hidden complexity in there.
#4
@
2 years ago
Howdy @nidhishanker, @antpb!
There is a Slug
option for attachments. I believe it is hidden by default to prevent potential problems. E.g. broken links...etc
To reveal it
- Edit the selected attachment
- Open Screen Options
- Check/enable the
Slug
option. - The slug field will be available at the bottom of the page and can be edited.
- Update once done.
This will change the slug and also free it up so it can be used by other post types.
Not sure if this issue needs to remain open, unless it's converted into an enhancement to improve this behavior.
This ticket was mentioned in Slack in #core-media by joedolson. View the logs.
2 years ago
#6
@
2 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
To add to @verygoode's comments, this is only a feature available in list mode; the slug isn't editable in the modal view. However, given that this is a rarely needed option, I don't see a lot of need to add it into other views.
Closing this ticket, as the option to edit an attachment slug already exists.
Attachment after uploading media.