From e79fb512522552fc8482bb25ff8099f68dea0a8e Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Mon, 16 Oct 2023 21:51:18 +0530 Subject: [PATCH 1/2] Add brand config to filter out irrelevant data for Hostgator --- includes/Brands.php | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/includes/Brands.php b/includes/Brands.php index 5f78ac2..360fa86 100644 --- a/includes/Brands.php +++ b/includes/Brands.php @@ -100,11 +100,11 @@ public static function get_brands() { : 'https://my.bluehost.com/cgi/services/migration', ), 'config' => array( - 'enabled_flows' => array( + 'enabled_flows' => array( 'ecommerce' => true, 'wp-setup' => true, ), - 'wonder_blocks' => true, + 'wonder_blocks' => true, 'prioritization' => false, ), ), @@ -162,11 +162,11 @@ public static function get_brands() { ), 'migrationInfo' => array(), 'config' => array( - 'enabled_flows' => array( + 'enabled_flows' => array( 'ecommerce' => true, 'wp-setup' => false, ), - 'wonder_blocks' => true, + 'wonder_blocks' => true, 'prioritization' => false, ), ), @@ -222,11 +222,11 @@ public static function get_brands() { ), 'migrationInfo' => array(), 'config' => array( - 'enabled_flows' => array( + 'enabled_flows' => array( 'ecommerce' => false, 'wp-setup' => false, ), - 'wonder_blocks' => true, + 'wonder_blocks' => true, 'prioritization' => false, ), ), @@ -282,13 +282,13 @@ public static function get_brands() { ), 'migrationInfo' => array(), 'config' => array( - 'enabled_flows' => array( + 'enabled_flows' => array( 'ecommerce' => true, 'wp-setup' => true, ), - 'wonder_blocks' => true, + 'wonder_blocks' => true, 'prioritization' => false, - 'views' => array( + 'views' => array( 'sidebar' => array( 'illustration' => array( 'shown' => false, @@ -349,17 +349,28 @@ public static function get_brands() { ), 'migrationInfo' => array(), 'config' => array( - 'enabled_flows' => array( + 'enabled_flows' => array( 'ecommerce' => true, 'wp-setup' => true, ), - 'wonder_blocks' => true, + 'wonder_blocks' => true, 'prioritization' => false, - 'views' => array( + 'views' => array( 'sidebar' => array( 'illustration' => array( 'shown' => false, ), + 'experts' => array( + 'shown' => false, + ), + 'fullService' => array( + 'shown' => false, + ), + 'infoPanel' => array( + 'headingWithDescriptions' => array( + 'shown' => array( 0 ), + ), + ), ), ), ), @@ -377,7 +388,7 @@ public static function set_current_brand( $container ) { if ( ! defined( 'NFD_ONBOARDING_PLUGIN_BRAND' ) ) { $brand = $container->plugin()->brand; if ( empty( $brand ) ) { - $brand = 'wordpress'; + $brand = 'WordPress'; } if ( false !== strpos( $brand, 'hostgator' ) ) { From b328962f458d3e4ab0a92c85ae9d5e094d501c4c Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Mon, 16 Oct 2023 22:12:46 +0530 Subject: [PATCH 2/2] revert auto lint of WordPress --- includes/Brands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Brands.php b/includes/Brands.php index 360fa86..8adab6f 100644 --- a/includes/Brands.php +++ b/includes/Brands.php @@ -388,7 +388,7 @@ public static function set_current_brand( $container ) { if ( ! defined( 'NFD_ONBOARDING_PLUGIN_BRAND' ) ) { $brand = $container->plugin()->brand; if ( empty( $brand ) ) { - $brand = 'WordPress'; + $brand = 'wordpress'; } if ( false !== strpos( $brand, 'hostgator' ) ) {