[wp-trac] [WordPress Trac] #57580: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in functions.php

WordPress Trac noreply at wordpress.org
Mon Jan 30 21:44:15 UTC 2023


#57580: strpos(): Passing null to parameter #1 ($haystack) of type string is
deprecated  in functions.php
--------------------------+------------------------------
 Reporter:  ipajen        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  PHP81 close   |     Focuses:
--------------------------+------------------------------
Changes (by jrf):

 * keywords:  PHP81 => PHP81 close


Comment:

 Thanks @ipajen for reporting this. The function used is clearly indicated
 as only accepting `string`s, so IMO, yes, this should be fixed by the
 plugins which are ''doing it wrong''.

 Suggest: close.

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


More information about the wp-trac mailing list