[wp-trac] [WordPress Trac] #38412: cannot update or delete user, term or comment meta via REST API

WordPress Trac noreply at wordpress.org
Wed Nov 9 18:10:12 UTC 2016


#38412: cannot update or delete user, term or comment meta via REST API
--------------------------+---------------------
 Reporter:  tharsheblows  |       Owner:  rmccue
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by tharsheblows):

 @rmccue Yes, I think so. Otherwise `register_meta( 'post', $meta_key,
 array( 'auth_callback' => 'new_callback' ) )` doesn't work as intended.
 It'd be best if it did from now when the REST API has just been included
 in core and people are starting to use it, especially since meta has been
 separate from the WP-API plugin up until not too long ago.

 Attached is patch with an additional unit test.

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


More information about the wp-trac mailing list