[wp-trac] [WordPress Trac] #49597: Introduce preflight filter to wp_delete_attachment().

WordPress Trac noreply at wordpress.org
Mon Mar 9 21:54:38 UTC 2020


#49597: Introduce preflight filter to wp_delete_attachment().
---------------------------+----------------------------
 Reporter:  peterwilsoncc  |       Owner:  peterwilsoncc
     Type:  enhancement    |      Status:  assigned
 Priority:  normal         |   Milestone:  5.5
Component:  Media          |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  commit         |     Focuses:
---------------------------+----------------------------
Changes (by joemcgill):

 * keywords:  has-patch => commit
 * owner:  (none) => peterwilsoncc
 * status:  new => assigned
 * milestone:  Awaiting Review => 5.5


Comment:

 @peterwilsoncc Ah, I missed that special treatment of attachments came
 before the preflight filter. Yes, this change makes perfect sense to me,
 given the state of things and also extends the preflight to any code
 calling `wp_delete_attachment()` directly. +1 from me.

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


More information about the wp-trac mailing list