Skip to content

Commit

Permalink
Make sure translatable strings are i18n-ed
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Oct 23, 2016
1 parent 65983c4 commit 0583ba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions includes/CMB2_REST_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,17 +400,17 @@ public function get_item_schema() {
'type' => 'object',
'properties' => array(
'description' => array(
'description' => 'A human-readable description of the object.',
'description' => __( 'A human-readable description of the object.', 'cmb2' ),
'type' => 'string',
'context' => array( 'view' ),
),
'name' => array(
'description' => 'The id for the object.',
'description' => __( 'The id for the object.', 'cmb2' ),
'type' => 'integer',
'context' => array( 'view' ),
),
'name' => array(
'description' => 'The title for the object.',
'description' => __( 'The title for the object.', 'cmb2' ),
'type' => 'string',
'context' => array( 'view' ),
),
Expand Down
5 changes: 3 additions & 2 deletions includes/CMB2_REST_Controller_Boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ public function register_routes() {
// Returns all boxes data.
register_rest_route( $this->namespace, '/' . $this->rest_base, array(
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_items' ),
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_items' ),
'permission_callback' => array( $this, 'get_items_permissions_check' ),
'args' => $this->get_collection_params(),
),
'schema' => array( $this, 'get_item_schema' ),
) );
Expand Down

0 comments on commit 0583ba5

Please sign in to comment.