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

WordPress Trac noreply at wordpress.org
Wed Oct 5 14:25:29 UTC 2022


#56739: Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type
string is deprecated
----------------------------+----------------------
 Reporter:  imadarshakshat  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Script Loader   |     Version:
 Severity:  normal          |  Resolution:  invalid
 Keywords:  php81           |     Focuses:
----------------------------+----------------------
Changes (by SergeyBiryukov):

 * keywords:   => php81
 * component:  Formatting => Script Loader
 * milestone:  Awaiting Review =>


Comment:

 Thanks for the follow-up!

 The deprecation notice comes from the `wp_add_inline_style()` function, so
 Script Loader seems to be a more appropriate component here.

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


More information about the wp-trac mailing list