[wp-trac] [WordPress Trac] #43941: Add default value to register meta

WordPress Trac noreply at wordpress.org
Wed Sep 18 21:14:46 UTC 2019


#43941: Add default value to register meta
--------------------------------------+-----------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  Future Release
Component:  Options, Meta APIs        |     Version:  4.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------------
Changes (by spacedmonkey):

 * keywords:  has-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 I have updated my patch with
 [https://core.trac.wordpress.org/attachment/ticket/43941/43941.4.diff
 43941.4.diff]. Patch fixes an issue with update meta data with default
 data set. Also adds unit tests. It is one tests with lots of data passed
 to it. I think worked out all the edge cases, but maybe more.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43941#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list