[wp-trac] [WordPress Trac] #57674: unregister_setting() raises a PHP warning on unknown settings
WordPress Trac
noreply at wordpress.org
Wed Feb 8 14:32:38 UTC 2023
#57674: unregister_setting() raises a PHP warning on unknown settings
--------------------------------+-----------------------------
Reporter: xknown | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords: php81
Focuses: |
--------------------------------+-----------------------------
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' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57674>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list