Remove background, primary_border, secondary_border from the API sche… (#40553)

* Remove background, primary_border, secondary_border from the API schema -- they are not used

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix lint

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Moon 2023-10-03 13:48:23 -07:00 committed by GitHub
parent 04bcc4a315
commit 92eb4efd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 14 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Remove backround, primary_border, secondary_border from the schema from themes REST API

View File

@ -419,26 +419,14 @@ class OnboardingThemes extends \WC_REST_Data_Controller {
'items' => array(
'type' => 'object',
'properties' => array(
'primary' => array(
'primary' => array(
'type' => 'string',
'description' => 'Primary color',
),
'secondary' => array(
'secondary' => array(
'type' => 'string',
'description' => 'Secondary color',
),
'background' => array(
'type' => 'string',
'description' => 'Background color',
),
'primary_border' => array(
'type' => 'string',
'description' => 'Primary border color (optional)',
),
'secondary_border' => array(
'type' => 'string',
'description' => 'Secondary border color (optional)',
),
),
),
),