| @@ -184,10 +184,9 @@ | ||
| 184 | 184 | }, 10, 2); |
| 185 | 185 | |
| 186 | 186 | wp_enqueue_script('fluent_community_onboarding', Vite::getDynamicSrcUrl('Onboarding/onboarding.js'), ['jquery'], FLUENT_COMMUNITY_PLUGIN_VERSION, [ |
| 187 | 187 | 'in_footer' => true, |
| 188 | - 'strategy' => 'defer', | |
| 189 | - 'type' => 'module' | |
| 188 | + 'strategy' => 'defer' | |
| 190 | 189 | ]); |
| 191 | 190 | |
| 192 | 191 | wp_localize_script('fluent_community_onboarding', 'fluentComAdmin', [ |
| 193 | 192 | 'ajaxurl' => admin_url('admin-ajax.php'), |
| @@ -199,13 +198,14 @@ | ||
| 199 | 198 | ], |
| 200 | 199 | 'i18n' => AdminTransStrings::getStrings(), |
| 201 | 200 | 'logo' => Helper::assetUrl('images/logo.png'), |
| 202 | 201 | 'is_admin' => Helper::isSiteAdmin(), |
| 202 | + 'is_super_admin' => Helper::isSuperAdmin(), | |
| 203 | 203 | 'is_onboarded' => !!Utility::getOption('onboarding_sub_settings'), |
| 204 | 204 | 'permalink_structure' => get_option('permalink_structure'), |
| 205 | 205 | 'is_slug_defined' => defined('FLUENT_COMMUNITY_PORTAL_SLUG'), |
| 206 | 206 | 'has_pro' => defined('FLUENT_COMMUNITY_PRO_VERSION'), |
| 207 | - 'upgrade_url' => Utility::getProductUrl(false), | |
| 207 | + 'upgrade_url' => Utility::getProUpgradeUrl('upgrade_page'), | |
| 208 | 208 | 'settings_page_url' => admin_url('admin.php?page=fluent-community'), |
| 209 | 209 | 'is_license_page' => isset($_GET['license']) && $_GET['license'] === 'yes', // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 210 | 210 | 'license_url_page' => defined('FLUENT_COMMUNITY_PRO_VERSION') ? admin_url('admin.php?page=fluent-community&license=yes') : '', |
| 211 | 211 | ]); |