[wp-trac] [WordPress Trac] #65042: Alter Attachment page slug behaviour

WordPress Trac noreply at wordpress.org
Wed Apr 8 19:12:55 UTC 2026


#65042: Alter Attachment page slug behaviour
-------------------------------+------------------------------
 Reporter:  namith.jawahar     |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  minor              |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by siliconforks):

 Replying to [ticket:65042 namith.jawahar]:
 > There is no straight forward way to recover this slug back too as media
 library is not represented as a post type in the admin UI.

 There is a way to do it although it is not very obvious - you have to edit
 an attachment, then click "Screen Options" and check the "Slug" checkbox.

 > I propose that media slugs be appended by an alphanumeric string on file
 upload to avoid hogging valuable slugs from other public post types.

 There are plugins which do this already - for example:

 https://wordpress.org/plugins/disable-media-pages/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65042#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list