[wp-trac] [WordPress Trac] #57138: Sanitize attachment ID in media.php

WordPress Trac noreply at wordpress.org
Thu Nov 17 20:55:06 UTC 2022


#57138: Sanitize attachment ID in media.php
--------------------------+------------------------------
 Reporter:  jaedm97       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * focuses:  privacy => administration


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the ticket.

 I might be missing something, but with the `(int)` type casting already
 applied there, isn't `sanitize_text_field()` redundant?

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


More information about the wp-trac mailing list