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

WordPress Trac noreply at wordpress.org
Mon Nov 21 05:40:47 UTC 2016


#38786: register_meta()'s show_in_rest not mapping to specific fields
--------------------------------------+-----------------------
 Reporter:  garubi                    |       Owner:  rmccue
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------
Changes (by rmccue):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39328"]:
 {{{
 #!CommitTicketReference repository="" revision="39328"
 REST API: Correctly map meta keys to field names.

 This accidentally assumed $name was the same as $meta_key, which ruined
 the whole point of $name.

 Props tharsheblows, joehoyle.
 Fixes #38786.
 }}}

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


More information about the wp-trac mailing list