[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 16:12:13 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: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Changes (by mukesh27):
* version: 5.7.1 =>
* component: General => Media
Comment:
Hi and welcome to WordPress Trac! Thanks for the ticket.
`wp_delete_attachment_files( $post_id, $meta, $backup_sizes, $file );`
called in wp_delete_attachment function at
[https://github.com/mukeshpanchal27/wordpress-develop/blob/master/src/wp-
includes/post.php#L6125 #L6125].
Removing version `5.7.1` and set component to `Media`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53084#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list