From 92eb4efd9db20913b51095d7651773e881244287 Mon Sep 17 00:00:00 2001 From: Moon Date: Tue, 3 Oct 2023 13:48:23 -0700 Subject: [PATCH] =?UTF-8?q?Remove=20background,=20primary=5Fborder,=20seco?= =?UTF-8?q?ndary=5Fborder=20from=20the=20API=20sche=E2=80=A6=20(#40553)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- ...ary-secondary-border-from-cys-themes-rest-api | 4 ++++ .../src/Admin/API/OnboardingThemes.php | 16 ++-------------- 2 files changed, 6 insertions(+), 14 deletions(-) create mode 100644 plugins/woocommerce/changelog/update-remove-primary-secondary-border-from-cys-themes-rest-api 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)', - ), ), ), ),