#62298 closed defect (bug) (fixed)
Update default parameter of `retrieve_password()` for PHP8 compatibility
| Reported by: | peterwilsoncc | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8 |
| Component: | Users | Version: | |
| Severity: | normal | Keywords: | php81 has-patch |
| Cc: | Focuses: | php-compatibility |
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.
22 months ago
#1
- Keywords has-patch added
@SergeyBiryukov commented on PR #7644:
22 months ago
#5
Thanks for the PR! Merged in r59312.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Quick PR to update
retrieve_password()for PHP8 compatibility. The parameter default should be''as line 3118 will throw a PHP Deprecation for passingnulltotrim().Trac ticket: https://core.trac.wordpress.org/ticket/62298