From 4c55038b0315370a800aa463ca391dbdae02bbf7 Mon Sep 17 00:00:00 2001 From: Muhammad Anas Date: Tue, 19 Mar 2024 15:20:49 +0500 Subject: [PATCH] Add wum-installed parameter to the connect URL --- .../woocommerce-admin/client/marketplace/utils/functions.tsx | 4 ++++ plugins/woocommerce/includes/admin/helper/class-wc-helper.php | 1 + 2 files changed, 5 insertions(+) diff --git a/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx b/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx index 5233303c2a7..bd169921f63 100644 --- a/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx +++ b/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx @@ -445,6 +445,10 @@ const connectUrl = (): string => { return appendURLParams( wccomSettings.connectURL, [ [ 'redirect_admin_url', encodeURIComponent( window.location.href ) ], + [ + 'wum-installed', + wccomSettings.wooUpdateManagerInstalled ? '1' : '0', + ], ] ); }; diff --git a/plugins/woocommerce/includes/admin/helper/class-wc-helper.php b/plugins/woocommerce/includes/admin/helper/class-wc-helper.php index ee9e9e7a75e..a92f18a7eca 100644 --- a/plugins/woocommerce/includes/admin/helper/class-wc-helper.php +++ b/plugins/woocommerce/includes/admin/helper/class-wc-helper.php @@ -83,6 +83,7 @@ class WC_Helper { 'section' => 'helper', 'wc-helper-connect' => 1, 'wc-helper-nonce' => wp_create_nonce( 'connect' ), + 'wum-installed' => WC_Woo_Update_Manager_Plugin::is_plugin_installed() ? '1' : '0', ), admin_url( 'admin.php' ) );