[wp-trac] [WordPress Trac] #40175: Upload Validation / MIME Handling

WordPress Trac noreply at wordpress.org
Fri Jan 18 21:38:25 UTC 2019


#40175: Upload Validation / MIME Handling
-------------------------------------------------+-------------------------
 Reporter:  blobfolio                            |       Owner:  joemcgill
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.1
Component:  Media                                |     Version:  4.7.3
 Severity:  major                                |  Resolution:
 Keywords:  has-unit-tests has-patch needs-      |     Focuses:
  testing early needs-dev-note                   |  administration
-------------------------------------------------+-------------------------

Comment (by joemcgill):

 [attachment:"40175.5.diff"] Adds backwards compatibility for the third
 `$mimes` parameter, which core never uses, but is sometimes used by
 plugins to pass in their own ext => mime type maps.

 I think we should consider at least a soft deprecation of this parameter,
 since it bypasses any real mime checks, and instruct integrators to filter
 the list of mime guessers instead. Looking through the plugins directory,
 I don't see many uses of that third parameter that would break if we
 deprecated it.

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


More information about the wp-trac mailing list