WordPress/wp-includes/rest-api/fields
Ryan McCue 3a449ea543 Roles/Capabilities: Add meta-caps for comment, term, and user meta.
Additionally, use these meta-caps in the REST API endpoints.

Previously, register_meta()'s auth_callback had no effect for non-post meta. This introduces `{add,edit,delete}_{comment,term,user}_meta` meta-caps to match the existing post meta capabilities. These are currently only used in the REST API.

Props tharsheblows, boonebgorges.
Fixes #38303, fixes #38412.

Built from https://develop.svn.wordpress.org/trunk@39179


git-svn-id: http://core.svn.wordpress.org/trunk@39119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-09 03:42:30 +00:00
..
class-wp-rest-comment-meta-fields.php Docs: Add much more complete and syntactically correct documentation throughout the `WP_REST_Comment_Meta_Fields` class. 2016-10-30 06:34:31 +00:00
class-wp-rest-meta-fields.php Roles/Capabilities: Add meta-caps for comment, term, and user meta. 2016-11-09 03:42:30 +00:00
class-wp-rest-post-meta-fields.php Docs: Add much more complete and syntactically correct documentation throughout the `WP_REST_Post_Meta_Fields` class. 2016-10-30 16:36:32 +00:00
class-wp-rest-term-meta-fields.php Docs: Add much more complete and syntactically correct documentation throughout the `WP_REST_Term_Meta_Fields` class. 2016-10-30 18:09:32 +00:00
class-wp-rest-user-meta-fields.php Docs: Add much more complete and syntactically correct documentation throughout the `WP_REST_User_Meta_Fields` class. 2016-10-30 18:28:30 +00:00