[wp-trac] [WordPress Trac] #53084: wp_delete_attachment deletes file even if $force_delete is false

WordPress Trac noreply at wordpress.org
Wed Mar 15 15:52:13 UTC 2023


#53084: wp_delete_attachment deletes file even if $force_delete is false
-------------------------------+----------------------
 Reporter:  pubalacon          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Media              |     Version:
 Severity:  normal             |  Resolution:  invalid
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+----------------------
Changes (by antpb):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Upon review in the Media meeting it was agreed that the docs are pretty
 clear about the behavior and that this is the intended behavior of the
 function. If we see more questions around this it would probably be a good
 move to identify how the docs should be clarified better but for now we
 should close this to keep the backlog of tickets true.

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


More information about the wp-trac mailing list