[wp-trac] [WordPress Trac] #54111: Delete attachment with sizes not working on Windows file system
WordPress Trac
noreply at wordpress.org
Fri Jan 5 16:12:16 UTC 2024
#54111: Delete attachment with sizes not working on Windows file system
-------------------------------------------------+-------------------------
Reporter: kybernetikservices | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5
Component: Media | Version: 5.8.1
Severity: normal | Resolution:
Keywords: reporter-feedback has-patch dev- | Focuses:
feedback needs-testing needs-testing-info |
-------------------------------------------------+-------------------------
Comment (by bgoewert):
Replying to [comment:17 kybernetikservices]:
> Hi @antpb. Is there a timeline for when this fix will be included in
WordPress core?
> The fix proided by @bgoewert 13 months ago is working. So, is there any
other reason why this can not be published? Thanks!
Hey @kybernetikservices, I think it's waiting on testing info and someone
to provide a test report before the patch can be accepted. (Unless a core
committer approves it?)
Would you have time to confirm these testing instructions and possible
provide some testing? I'll also try spin up a trial version of Windows
Server 2022 and see if I can't reproduce this issue too.
Also, have you been able to confirm that this only happens to custom post
types?
Or does this also happen for the default post and page types?
== Testing Instructions
**Requires:** Windows Server running WordPress on IIS.
From my understanding, these are the steps to take to reproduce the issue.
Once I am able, I can upload a basic plugin to test with that creates a
new post type and a hook to delete attachments upon post deletion. Or if
@kybernetikservices can, that would be helpful as well.
=== Steps to Reproduce
1. (optional) Create a custom post type.
1. Add a hook that calls `wp_delete_attachment()` to delete all the post
attachments when a post, page, or custom post type is trashed.
1. Create a new post.
1. Insert an image as a post attachment. (this will create image
variations)
1. Delete the post.
=== Expected Results
When reproducing the bug:
- Image variations are not removed when trashing a post.
When testing the patch:
- All image variations should be removed along with the post attachment.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54111#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list