[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`

WordPress Trac noreply at wordpress.org
Thu May 10 22:35:15 UTC 2018


#38323: Reconsider $object_subtype handling in `register_meta()`
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.0
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:  rest-api
  dev-note                                       |
-------------------------------------------------+-------------------------

Comment (by Shelob9):

 I wanted to cross reference this Gutenberg issue. The schema for block
 attributes supports a default. If a block attribute uses meta storage,
 Gutenberg relies on the meta API for the default, which would be perfect
 if register_meta() supported the default argument like block attributes
 and REST API endpoint args do.

 https://github.com/WordPress/gutenberg/issues/4494

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


More information about the wp-trac mailing list