From 634a4edc1350ea6f12eda90282f69c473667e2ad Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Mon, 18 Nov 2019 08:37:16 -0400 Subject: [PATCH] return a value from create pages API call (https://github.com/woocommerce/woocommerce-admin/pull/3261) --- plugins/woocommerce-admin/src/API/OnboardingTasks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/woocommerce-admin/src/API/OnboardingTasks.php b/plugins/woocommerce-admin/src/API/OnboardingTasks.php index 6194f371ca1..843d3e83922 100644 --- a/plugins/woocommerce-admin/src/API/OnboardingTasks.php +++ b/plugins/woocommerce-admin/src/API/OnboardingTasks.php @@ -384,9 +384,12 @@ class OnboardingTasks extends \WC_REST_Data_Controller { /** * Creates base store starter pages like my account and checkout. * Note that WC_Install::create_pages already checks if pages exist before creating them again. + * + * @return bool */ public static function create_store_pages() { \WC_Install::create_pages(); + return true; } /**