diff --git a/plugins/woocommerce/changelog/update-remove-primary-secondary-border-from-cys-themes-rest-api b/plugins/woocommerce/changelog/update-remove-primary-secondary-border-from-cys-themes-rest-api new file mode 100644 index 00000000000..f6211ffdc17 --- /dev/null +++ b/plugins/woocommerce/changelog/update-remove-primary-secondary-border-from-cys-themes-rest-api @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Remove backround, primary_border, secondary_border from the schema from themes REST API \ No newline at end of file diff --git a/plugins/woocommerce/src/Admin/API/OnboardingThemes.php b/plugins/woocommerce/src/Admin/API/OnboardingThemes.php index 10101166fed..29b4679e431 100644 --- a/plugins/woocommerce/src/Admin/API/OnboardingThemes.php +++ b/plugins/woocommerce/src/Admin/API/OnboardingThemes.php @@ -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)', - ), ), ), ),