[wp-trac] [WordPress Trac] #43941: Add default value to register meta
WordPress Trac
noreply at wordpress.org
Thu Jun 4 10:42:22 UTC 2020
#43941: Add default value to register meta
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| johnbillion
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.5
Component: Options, Meta APIs | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests early | Focuses: rest-api
needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
New patch
[https://core.trac.wordpress.org/attachment/ticket/43941/43941.16.diff
43941.16.diff].
Use `array_key_exists` over `isset` as isset doesn't work on null values.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43941#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list