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

WordPress Trac noreply at wordpress.org
Fri Jul 17 15:14:19 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                                           |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48505" 48505]:
 {{{
 #!CommitTicketReference repository="" revision="48505"
 Options, Meta APIs: Reorder the parameters of
 `default_{$meta_type}_metadata` filter.

 This brings consistency with the `get_{$meta_type}_metadata` filter and
 more closely matches the `get_metadata_default()` function signature.

 Follow-up to [48502].

 Props spacedmonkey.
 See #43941.
 }}}

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


More information about the wp-trac mailing list