[wp-trac] [WordPress Trac] #58728: Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

WordPress Trac noreply at wordpress.org
Thu Jul 6 14:37:33 UTC 2023


#58728: Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type
string is deprecated
-------------------------------+-------------------------------
 Reporter:  ispreview          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch php81  |     Focuses:  coding-standards
-------------------------------+-------------------------------
Changes (by jrf):

 * keywords:  needs-patch => needs-patch php81


Comment:

 @ispreview That will need a backtrace as this is likely caused by a plugin
 or theme doing something wrong. If not, we still need to know where in
 Core to fix the incorrect function call as the function in the
 `functions.php` file is passed incorrect information, which should be
 fixed at the point the information is passed, not where it is received
 (which is where the deprecation is being thrown).

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


More information about the wp-trac mailing list