#62298 closed defect (bug) (fixed)
Update default parameter of `retrieve_password()` for PHP8 compatibility
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | php81 has-patch |
Focuses: | php-compatibility | Cc: |
Description
The parameter default should be as line 3118 will throw a PHP Deprecation for passing null to trim().
Props @afragen for reporting.
Change History (5)
This ticket was mentioned in PR #7644 on WordPress/wordpress-develop by @afragen.
7 months ago
#1
- Keywords has-patch added
#4
@
7 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 59312:
@SergeyBiryukov commented on PR #7644:
7 months ago
#5
Thanks for the PR! Merged in r59312.
Note: See
TracTickets for help on using
tickets.
Quick PR to update
retrieve_password()
for PHP8 compatibility. The parameter default should be''
as line 3118 will throw a PHP Deprecation for passingnull
totrim()
.Trac ticket: https://core.trac.wordpress.org/ticket/62298