[wp-trac] [WordPress Trac] #38786: register_meta()'s show_in_rest not mapping to specific fields

WordPress Trac noreply at wordpress.org
Mon Nov 14 19:48:19 UTC 2016


#38786: register_meta()'s show_in_rest not mapping to specific fields
--------------------------+------------------------------
 Reporter:  garubi        |       Owner:  joehoyle
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by tharsheblows):

 First pass at a fix. nb: I didn't want the stored meta key names to leak
 out in error messages if someone used a custom name. (Ie if there's an
 error message, it should use `$name` from `'show_in_rest' => array( 'name'
 => $name )`)

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


More information about the wp-trac mailing list