[wp-trac] [WordPress Trac] #43941: Add default value to register meta
WordPress Trac
noreply at wordpress.org
Mon Sep 23 18:46:01 UTC 2019
#43941: Add default value to register meta
---------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner: kadamwhite
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.3
Component: Options, Meta APIs | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-------------------------
Comment (by kadamwhite):
I've uploaded one more patch to remove the addition of `'default' => null`
to the testing arrays, as @TimothyBlynJacobs' latest patch swapping our
default check to use `array_key_exists` means we can specify no default
best through omission.
However, we've encountered an issue introduced in one of the earlier
patches which may require us to punt to 5.4 early. Timothy will elaborate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43941#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list