[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:49:16 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 close  |     Focuses:  php-compatibility
-----------------------------+--------------------------------
Changes (by swissspidy):

 * keywords:  has-patch => has-patch close


Comment:

 If you get deprecation warnings like this, it's because a plugin or theme
 is incorrectly passing `null` values to `esc_url`. This should be fixed at
 the root, which is in the plugin/theme making these calls.

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


More information about the wp-trac mailing list