REST API: Clean up argument and property types.

There's a couple of places where we were missing type notes for arguments, which mainly affects documentation.

Props jnylen0.
Fixes #38792.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe Hoyle
2016-11-15 18:16:30 +00:00
parent 19bb9c2fe0
commit d049f72459
6 changed files with 17 additions and 9 deletions

View File

@@ -1158,6 +1158,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
'description' => __( 'HTML content for the object, transformed for display.' ),
'type' => 'string',
'context' => array( 'view', 'edit', 'embed' ),
'readonly' => true,
),
),
),