[wp-trac] [WordPress Trac] #58283: Deprecated preg_replace() warning PHP 8.1

WordPress Trac noreply at wordpress.org
Wed May 10 09:11:26 UTC 2023


#58283: Deprecated preg_replace() warning PHP 8.1
----------------------------+-----------------------------
 Reporter:  aukeklumper     |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  6.2
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 PHP warning is thrown in 6.2 with PHP 8.1 - same issue as
 [https://core.trac.wordpress.org/ticket/57578]

 {{{
 Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of
 type array|string is deprecated
 }}}

 Warning is thrown on:
 /wp-admin/nav-menus.php

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


More information about the wp-trac mailing list