[wp-trac] [WordPress Trac] #43392: Support 'object' and 'array' types in register_meta()

WordPress Trac noreply at wordpress.org
Thu Aug 16 21:33:55 UTC 2018


#43392: Support 'object' and 'array' types in register_meta()
--------------------------------+-----------------------------
 Reporter:  diegoliv            |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Options, Meta APIs  |     Version:  4.9.4
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  rest-api
--------------------------------+-----------------------------

Comment (by mnelson4):

 +1 @flixos90.

 > Regarding serialization, I consider this problematic for the above
 workaround, passing serialized or JSON-encoded strings to the API. Once we
 actually support proper objects and arrays, this will happen internally

 I don’t understand what you mean here though. Are you just saying we
 shouldn’t pass serialized data or json encoded data for meta values (over
 the REST API and  the `*_post_meta` functions). If so I think I agree.

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


More information about the wp-trac mailing list