[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
Wed Jun 12 05:23:04 UTC 2024


#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:  6.6
Component:  Media                                |     Version:  6.3
 Severity:  normal                               |  Resolution:
 Keywords:  php81 has-patch has-unit-tests       |     Focuses:  php-
  needs-testing has-testing-info                 |  compatibility
-------------------------------------------------+-------------------------

Comment (by rajinsharwar):

 == Test Report
 This report validates that the indicated patch addresses the issue.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/6443

 ### Environment
 - WordPress: 6.6-beta2-58392-src
 - PHP: 8.3.0
 - Server: NGINX
 - Browser: Chrome
 - Theme: Twenty Twenty-Three

 === Actual Results
 - ✅ The deprecation warnings don't seem to trigger when visiting the
 Media page;
 - ✅ After running `wp eval "print_r( get_available_post_mime_types(
 'attachment' ) );" command`, no empty element found in the array.

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


More information about the wp-trac mailing list