Opened 4 months ago
Closed 4 months ago
#62586 closed defect (bug) (wontfix)
rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in wp-includes/formatting.php:2820
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Description
I am getting the given PHP Deprecated Error:
rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in wp-includes/formatting.php:2820
This is happening when null is passed to rtrim().
Attachments (1)
Change History (4)
This ticket was mentioned in PR #7902 on WordPress/wordpress-develop by @narenin.
4 months ago
#2
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/62586
#3
@
4 months ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
If you click on the "+" button in Query Monitor you will see which plugin or theme is causing this warning.
The issue should be fixed there. It's not core's job to ensure the plugin/theme is passing the right type everywhere. The plugin/theme needs to do that properly.
Note: See
TracTickets for help on using
tickets.
trim() passing null PHP deprecated error