Opened 8 months ago
Last modified 5 weeks ago
#57674 new defect (bug)
unregister_setting() raises a PHP warning on unknown settings
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | php81 has-patch has-unit-tests needs-testing |
Focuses: | php-compatibility | Cc: |
Description
Starting from PHP 8.x, attempting to unregister an undefined setting results in PHP warnings: Warning: Trying to access array offset on value of type null
.
unregister_setting( 'somethingrandom', 'somethingrandom' );
Change History (4)
This ticket was mentioned in PR #4035 on WordPress/wordpress-develop by xknown.
8 months ago
#1
- Keywords has-patch has-unit-tests added
#2
@
8 weeks ago
- Focuses php-compatibility added
I'll mark this ticket as a php-compatibility
focus to include it in the PHP 8.1 compat exclusion list.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/57674