Opened 7 weeks ago
Last modified 7 weeks ago
#62276 assigned defect (bug)
class-wp-user.php can throw a warning for trim() when $value is null
Reported by: | heuptasje | Owned by: | heuptasje |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.7 |
Component: | General | Keywords: | has-patch |
Focuses: | coding-standards, php-compatibility | Cc: |
Description
It seems like the class-wp-user.php
class can throw a deprecated warning on the trim()
function when $value
is null.
Change History (3)
This ticket was mentioned in PR #7612 on WordPress/wordpress-develop by chrisd1997.
7 weeks ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Moved the
null
check above the usage of$value
, as this could benull
. If the$value
isnull
, a deprecation warning will be thrown for thetrim()
function.Trac ticket: https://core.trac.wordpress.org/ticket/62276