[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 21:06:23 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        |  Resolution:
 Keywords:  has-patch     |     Focuses:  php-compatibility
--------------------------+--------------------------------
Changes (by robinmartijn):

 * focuses:   => php-compatibility


Comment:

 Thanks Mike!

 Another solution would be to set the `$url` parameter to have an empty
 string as the default value. I am not sure if we have a preference
 regarding that. Both would have the same exact result.

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


More information about the wp-trac mailing list