[wp-trac] [WordPress Trac] #53084: wp_delete_attachment deletes file even if $force_delete is false
WordPress Trac
noreply at wordpress.org
Sun Apr 25 21:13:58 UTC 2021
#53084: wp_delete_attachment deletes file even if $force_delete is false
-------------------------------+------------------------------
Reporter: pubalacon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by SergeyBiryukov):
Just noting that code similar to the fragment above can be found not only
in `wp_delete_attachment()`, but also in `wp_delete_comment()` and
`wp_delete_post()`. Perhaps the `$force_delete` argument in these
functions needs better documentation?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53084#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list