[wp-trac] [WordPress Trac] #59195: deprecation notice triggered in post.php by passing null to parameter #2 in preg_match()

WordPress Trac noreply at wordpress.org
Fri Aug 25 16:12:00 UTC 2023


#59195: deprecation notice triggered in post.php by passing null to parameter #2 in
preg_match()
-------------------------------------------+-------------------------------
 Reporter:  nosilver4u                     |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Media                          |     Version:  6.3
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch needs-testing php81  |     Focuses:  php-
                                           |  compatibility
-------------------------------------------+-------------------------------

Comment (by nosilver4u):

 @jrf I agree that it should be fixed at the source, but there are at least
 10 places where wp_match_mime_types() is used in core. And since it could
 also be used by plugins/themes, wp_match_mime_types() should also verify
 the data it receives, right?

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


More information about the wp-trac mailing list