[wp-trac] [WordPress Trac] #43941: Add default value to register meta
WordPress Trac
noreply at wordpress.org
Wed Jun 27 00:22:19 UTC 2018
#43941: Add default value to register meta
----------------------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.0
Component: Options, Meta APIs | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: rest-api
----------------------------------------+---------------------------
Comment (by spacedmonkey):
In [https://core.trac.wordpress.org/attachment/ticket/43941/43941.diff
43941.diff] all the logic has been moved to filters, to keep inline with
other functionality in the meta api.
I also changed the name of the key to `default` and change the default
value to `null` to keep inline with existing values in the rest api.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43941#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list