Add wum-installed parameter to the connect URL
This commit is contained in:
parent
2fa0469e08
commit
4c55038b03
|
@ -445,6 +445,10 @@ const connectUrl = (): string => {
|
|||
|
||||
return appendURLParams( wccomSettings.connectURL, [
|
||||
[ 'redirect_admin_url', encodeURIComponent( window.location.href ) ],
|
||||
[
|
||||
'wum-installed',
|
||||
wccomSettings.wooUpdateManagerInstalled ? '1' : '0',
|
||||
],
|
||||
] );
|
||||
};
|
||||
|
||||
|
|
|
@ -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' )
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue