#54914 closed defect (bug) (fixed)
Deprecation warning for PHP 8.1 setcookie
Reported by: | shenyanzhi | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Options, Meta APIs | Keywords: | php81 has-patch |
Focuses: | Cc: |
Description (last modified by )
Deprecated: setcookie(): Passing null to parameter #5 ($domain) of type string is deprecated in .../wp-includes/option.php on line 1109
Change History (7)
This ticket was mentioned in PR #2800 on WordPress/wordpress-develop by ocean90.
2 years ago
#3
- Keywords has-patch added
#4
@
2 years ago
- Component changed from General to Options, Meta APIs
- Milestone changed from Awaiting Review to 6.1
- Severity changed from major to normal
- Version changed from 5.9 to 4.0
#5
@
2 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 53490:
SergeyBiryukov commented on PR #2800:
2 years ago
#6
Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/53490.
Note: See
TracTickets for help on using
tickets.
$domain
should be a string and not null to avoid the PHP 8.2 deprecation: _setcookie():Passing null to parameter #5 ($domain) of type string is deprecated_
Introduced in https://github.com/WordPress/wordpress-develop/commit/b343d482215025aa7da34c71219796361b9b4f7e / https://core.trac.wordpress.org/changeset/29478.
Trac ticket: https://core.trac.wordpress.org/ticket/54914