[wp-trac] [WordPress Trac] #56170: Bulk delete media attachments doesn't pass integer values to wp_delete_attachment

WordPress Trac noreply at wordpress.org
Thu Jul 7 23:27:44 UTC 2022


#56170: Bulk delete media attachments doesn't pass integer values to
wp_delete_attachment
-----------------------------------+------------------------------
 Reporter:  eherman24              |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Media                  |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  administration
-----------------------------------+------------------------------

Comment (by eherman24):

 I added an updated patch, the first one included an unnecessary typecast
 of `$post_id_del` to `current_user_can()`

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


More information about the wp-trac mailing list