Skip to content

Commit

Permalink
Fix indenting and clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecoder committed Jan 18, 2024
1 parent d5743c9 commit cc24936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ public function get_item_schema() {
),
);

$this->schema = $schema;
$this->schema = $schema;

return $this->add_additional_fields_schema( $this->schema );
return $this->add_additional_fields_schema( $this->schema );
}

/**
Expand Down Expand Up @@ -637,7 +637,7 @@ public function get_create_params() {
$properties = $this->get_item_schema()['properties'];
return array(
'theme_json_version' => $properties['theme_json_version'],
// Font face settings is stringified JSON, to work with multipart/form-data used
// When creating, font_face_settings is stringified JSON, to work with multipart/form-data used
// when uploading font files.
'font_face_settings' => array(
'description' => __( 'font-face declaration in theme.json format, encoded as a string.', 'gutenberg' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function get_endpoint_args_for_item_schema( $method = WP_REST_Server::CRE
$properties = $this->get_item_schema()['properties'];
return array(
'theme_json_version' => $properties['theme_json_version'],
// Font family settings is stringified JSON, to work with multipart/form-data.
// When creating or updating, font_family_settings is stringified JSON, to work with multipart/form-data.
// Font families don't currently support file uploads, but may accept preview files in the future.
'font_family_settings' => array(
'description' => __( 'font-family declaration in theme.json format, encoded as a string.', 'gutenberg' ),
Expand Down

0 comments on commit cc24936

Please sign in to comment.