[wp-trac] [WordPress Trac] #58954: php 8.1 preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

WordPress Trac noreply at wordpress.org
Tue Aug 1 12:43:31 UTC 2023


#58954: php 8.1 preg_replace(): Passing null to parameter #3 ($subject) of type
array|string is deprecated
---------------------------+-----------------------------
 Reporter:  TwentyZeroTwo  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  6.2.2
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Encountered when editing a page at /wp-admin/post.php?post=2&action=edit

 On line 6811 of wp-includes/post.php

 {{{
  $ext     = preg_replace( '/^.+?\.([^.]+)$/', '$1', $file );
 }}}

 I found a lot of these tickets on trac, but couldnt find any for this
 specific instance.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58954>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list