[wp-trac] [WordPress Trac] #61544: PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /app/public/wp-includes/formatting.php on line 4494
WordPress Trac
noreply at wordpress.org
Mon Jul 1 20:52:04 UTC 2024
#61544: PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type
string is deprecated in /app/public/wp-includes/formatting.php on line 4494
--------------------------+-----------------------------
Reporter: mikedjo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Formatting.php :4490
{{{
if ( '' === $url) {
return $url;
}
}}}
Should be:
{{{
if ( '' === $url || empty($url)) {
return $url;
}
}}}
to prevent unnecessary deprecation warnings in the debug.log
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61544>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list