Skip to content

Commit

Permalink
Set the default to comment for type
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Oct 6, 2016
1 parent 5b3b75a commit 61587a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/endpoints/class-wp-rest-comments-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,9 @@ public function get_item_schema() {
'description' => __( 'Type of Comment for the object.' ),
'type' => 'string',
'context' => array( 'view', 'edit', 'embed' ),
'default' => 'comment',
'arg_options' => array(
'sanitize_callback' => 'sanitize_key',
'default' => '',
),
),
),
Expand Down

0 comments on commit 61587a4

Please sign in to comment.