[wp-trac] [WordPress Trac] #60046: Passing null to parameter #1 ($haystack) of type string is deprecated in\wp-includes\functions.php on line 7244

WordPress Trac noreply at wordpress.org
Mon Dec 11 20:07:52 UTC 2023


#60046: Passing null to parameter #1 ($haystack) of type string is deprecated in
\wp-includes\functions.php on line 7244
---------------------------+------------------------
 Reporter:  Sander Falise  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Media          |     Version:  6.4.2
 Severity:  minor          |  Resolution:  duplicate
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------
Changes (by sabernhardt):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi and welcome to WordPress Core Trac!

 The deprecation warnings for `wp_is_stream()` and `wp_normalize_path()`
 were already reported on #57580 and #57581 (plus #58104 and #59756). Both
 functions have required a string since they were created, so plugin
 authors need some message to know when and how their plugin is //doing it
 wrong//. The decision on #57580 and #57581 was to keep those deprecated
 warnings.

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


More information about the wp-trac mailing list