[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()

WordPress Trac noreply at wordpress.org
Tue Apr 12 03:24:35 UTC 2016


#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
 Reporter:  jeremyfelt                           |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Options, Meta APIs                   |  Review
 Severity:  normal                               |     Version:
 Keywords:  needs-unit-tests needs-testing has-  |  Resolution:
  patch rest-api                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by ericlewis):

 In attachment:35658.3.diff

 * Create `schema` element in the `register_meta()` options array, which is
 a full schema definition of the meta field. Drop `description` and `type`
 as both of these should be expressed in the schema.
 * Make `register_meta()` return true or WP_Error, bubbling up errors from
 `WP_Meta_Manager->register()`.
 * Make the registry work for taxonomies, comments and users.

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


More information about the wp-trac mailing list