[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
Thu May 2 13:35:07 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 antonvlasenko):

 == 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-alpha-57778-src
 - PHP: 8.3.3
 - Server: Apache/2.4.57 (Unix) PHP/8.3.3
 - Database: mysqli (Server: 5.7.43 / Client: mysqlnd 8.3.3)
 - Browser: Safari 17.4.1 (macOS)
 - Theme: Twenty Twenty-Four 1.1
 - MU-Plugins: None activated
 - Plugins:
   * JSON Basic Authentication 0.1
   * WordPress Beta Tester 3.5.3

 === Actual Results
 - ✅ No deprecation errors triggered on the Media page;
 - ✅ No empty values returned when running the `wp eval "print_r(
 get_available_post_mime_types( 'attachment' ) );" command`.

 === Additional Notes
 N/A

 === Supplemental Artifacts
 [[Image(https://cldup.com/fNCk3_1WGT.png)]]
 [[Image(https://cldup.com/R6IwV8wr63.png)]]
 [[Image(https://cldup.com/DTQkgN-6sX.png)]]

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


More information about the wp-trac mailing list