[wp-trac] [WordPress Trac] #61707: Minor problem in WP 6.6

WordPress Trac noreply at wordpress.org
Fri Jul 19 10:51:38 UTC 2024


#61707: Minor problem in WP 6.6
--------------------------+------------------------
 Reporter:  martenw       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  minor         |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by sabernhardt):

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


Old description:

> PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of
> type string is deprecated in C:\Xampp\apps\wordpress\htdocs\wp-
> includes\functions.php on line 7300
> PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of
> type array|string is deprecated in C:\Xampp\apps\wordpress\htdocs\wp-
> includes\functions.php on line 2189

New description:

 `PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of
 type string is deprecated in C:\Xampp\apps\wordpress\htdocs\wp-
 includes\functions.php on line 7300`
 `PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of
 type array|string is deprecated in C:\Xampp\apps\wordpress\htdocs\wp-
 includes\functions.php on line 2189`

--

Comment:

 Hi again!

 Those two functions are `wp_normalize_path()` and `wp_is_stream()`, same
 as #60636. The error should be found in a function that feeds
 `wp_normalize_path()` a non-string value, often caused by a plugin setting
 the first parameter of `add_submenu_page()` to `null`.

 I'll close this ticket as a duplicate of #57580.

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


More information about the wp-trac mailing list