Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #59757


Ignore:
Timestamp:
01/11/2024 10:18:14 PM (11 months ago)
Author:
sabernhardt
Comment:

#57580 (and #57581) had earlier reports about the deprecated warnings for wp_normalize_path() and wp_is_stream().

The four causes identified on #57580 were all plugins that had added null in the add_submenu_page() function. Those four plugins have been updated for newer PHP, but a directory search still finds many plugins doing it wrong. The problem could also be somewhere else.

If you identify the issue in a plugin, please report it to the plugin's author.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59757

    • Property Status changed from new to closed
    • Property Focuses php-compatibility removed
    • Property Milestone changed from Awaiting Review to
    • Property Keywords php81 added
    • Property Resolution changed from to duplicate
  • Ticket #59757 – Description

    initial v2  
    11
    2 The function wp_normalize_path() is causing the error below on my test environment:
     2The function `wp_normalize_path()` is causing the error below on my test environment:
    33
    4 PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/gary/bailey-head/wordpress/wp-includes/functions.php on line 2182
     4`PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /.../wp-includes/functions.php on line 2182`
    55
    66Locally I altered the function to resolve the error as per the code below: