[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 Dec 11 20:07:10 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: closed
Priority: normal | Milestone:
Component: General | Version: 6.2
Severity: normal | Resolution: invalid
Keywords: PHP81 close | Focuses:
--------------------------+----------------------
Comment (by sabernhardt):
**Update:** both plugins mentioned in the description fixed their use of
`add_submenu_page()` ([https://wpreviewslider.userecho.com/knowledge-
bases/2/articles/88-change-log review plugin's version 11.5.9] and
[https://plugins.trac.wordpress.org/browser/ninja-
forms?order=name#tags/3.6.17/includes forms plugin version 3.6.17]).
The `add_submenu_page()` function has required strings for its first five
parameters since [12914], but a
[https://wpdirectory.net/search/01HHD6Z8T4Y1ACTKK68HJ5CNJJ directory
search] found many other plugins with `null` as at least one of those
parameters. //Maybe// that could justify adding a `_doing_it_wrong()`
message to `add_submenu_page()` and/or `add_menu_page()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57580#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list