Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #60982


Ignore:
Timestamp:
04/19/2024 08:03:52 PM (15 months ago)
Author:
sabernhardt
Comment:

#57580 is also about null parameter(s) in the add_submenu_page function.

(My first patch there could have silenced errors too, but plugin authors need to know that null does not work well.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60982

    • 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 #60982 – Description

    initial v3  
    11With php v8.1 and WordPress v6.5.2 I receive warnings in admin area:
    2 
     2{{{
    33 PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type
    44 array|string is deprecated in /wp-includes/functions.php on line 7241
    5 
     5}}}
     6{{{
    67 PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type
    78 array|string is deprecated in /wp-includes/functions.php on line 2187
    8 
     9}}}
     10{{{
    911 PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is
    1012 deprecated in \wp-admin\admin-header.php on line 36
     13}}}
    1114
    1215They all are easily fixable, so I just hope somebody will add fixes to next update:
    13   https://prnt.sc/SXP6CYRUswtz
    14   https://prnt.sc/-XgEBobeohgn
    15   https://prnt.sc/GiNK_lL4cwxX
    16  
     16
     17https://prnt.sc/SXP6CYRUswtz
     18https://prnt.sc/-XgEBobeohgn
     19https://prnt.sc/GiNK_lL4cwxX