[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:22:54 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):

 Here's the trace:

 {{{
 wp-includes/post.php:3298
 preg_match()
 wp-includes/post.php:3298
 wp_match_mime_types()
 wp-admin/includes/class-wp-media-list-table.php:138
 WP_Media_List_Table->get_views()
 wp-admin/includes/class-wp-media-list-table.php:273
 WP_Media_List_Table->views()
 wp-admin/upload.php:435
 }}}

 I had done some debugging previously, and $real_mime_types was an array
 with multiple values, with one of them set to null.

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


More information about the wp-trac mailing list