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

WordPress Trac noreply at wordpress.org
Thu Aug 22 21:58:14 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 needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+-----------------------------

Comment (by rmccue):

 I just ran into a problem where [attachment:"43941.3.diff"] would have
 solved it, so +1 on it.

 One note: to make it possibly more consistent with options, a filter with
 the key in it might be useful, so that you don't have to hook in and check
 the arguments.

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


More information about the wp-trac mailing list