[wp-trac] [WordPress Trac] #48710: Media uploader does not restrict file upload `accepts` parameters based on current context

WordPress Trac noreply at wordpress.org
Tue Jun 3 15:17:54 UTC 2025


#48710: Media uploader does not restrict file upload `accepts` parameters based on
current context
---------------------------------------+----------------------------
 Reporter:  worddean                   |       Owner:  joedolson
     Type:  defect (bug)               |      Status:  accepted
 Priority:  normal                     |   Milestone:  6.9
Component:  Media                      |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-test-info needs-patch  |     Focuses:  accessibility
---------------------------------------+----------------------------
Changes (by joedolson):

 * keywords:  has-test-info has-patch => has-test-info needs-patch


Comment:

 @ruturajraval2305 Thanks for your patch! This patch will help resolve the
 warnings that appear when invalid content is added, but that doesn't
 resolve the root issue here, and could actually make it worse.

 While removing the PHP warning is probably a good idea, it should be
 accompanied by adding a user notification that lets the user know that the
 content they've added isn't valid in this context.

 Can I suggest you open a new ticket to address that? This ticket is
 intended to resolve the root issue that allows a user to upload an invalid
 file type in the first place.

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


More information about the wp-trac mailing list