[wp-trac] [WordPress Trac] #56170: Bulk delete media attachments doesn't pass integer values to wp_delete_attachment
WordPress Trac
noreply at wordpress.org
Wed Feb 1 22:15:18 UTC 2023
#56170: Bulk delete media attachments doesn't pass integer values to
wp_delete_attachment
------------------------------+-----------------------------
Reporter: eherman24 | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: administration
------------------------------+-----------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"55183" 55183]:
{{{
#!CommitTicketReference repository="" revision="55183"
Media: Ensure media IDs are type `int` in bulk editing.
Cast all array values to integers using `array_map` so functions like
`wp_delete_attachment` receiving the expected variable type.
Props eherman24, joedolson.
Fixes #56170.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56170#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list