[wp-trac] [WordPress Trac] #57581: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in functions.php

WordPress Trac noreply at wordpress.org
Thu Mar 23 15:34:36 UTC 2023


#57581: str_replace(): Passing null to parameter #3 ($subject) of type array|string
is deprecated in functions.php
-------------------------------------+---------------------
 Reporter:  ipajen                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.3
Component:  General                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  PHP81 close 2nd-opinion  |     Focuses:
-------------------------------------+---------------------

Comment (by ipajen):

 Replying to [comment:3 jrf]:

 > > The current hap-snap "add a ''_doing_it_wrong'' to a function whenever
 someone reports an issue of a plugin doing silly things" is not helping
 anyone in the long run.
 > >
 > > IMO we need a more structural approach.

 It would be easier for a end user to know where to report the issue: the
 plugin author or  WordPress with a ''_doing_it_wrong''. Specially for one
 who don't know coding ;)

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


More information about the wp-trac mailing list