[wp-trac] [WordPress Trac] #63670: Add trashability to REST API attachment controller

WordPress Trac noreply at wordpress.org
Tue Jul 8 05:10:53 UTC 2025


#63670: Add trashability to REST API attachment controller
---------------------------+-----------------------------
 Reporter:  isabel_brison  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  REST API       |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Would be good to have a `trashable` property to the attachment schema that
 checks the MEDIA_TRASH constant.

 This will be needed to display the correct actions for media items in data
 views.

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


More information about the wp-trac mailing list