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

WordPress Trac noreply at wordpress.org
Fri Jul 17 13:30:40 UTC 2020


#43941: Add default value to register meta
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  Options, Meta APIs                   |     Version:  4.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  rest-api
  note                                           |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48502" 48502]:
 {{{
 #!CommitTicketReference repository="" revision="48502"
 Meta: Reorder the get_metadata_default() signature to match
 get_metadata().

 The order of parameters in `get_metadata_default()` did not match the
 signature of `get_metadata()`. This could be confusing for developers who
 are familiar with the existing metadata API.

 Fixes #43941.
 Props SergeyBiryukov, spacedmonkey, johnjamesjacoby.
 }}}

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


More information about the wp-trac mailing list