PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Modules/Templating/AssetLoader.php +10 -2 1.5.4 → 1.6.5 View file →
@@ -342,15 +342,23 @@
342 342 Vite::enqueueStyle('fluentcart-customer-css',
343 343 'public/customer-profile/style/customer-profile.scss'
344 344 );
345 345
346 + // wp-i18n: this bundle pulls in the admin translator transitively
347 + // (Start.js -> @/Bits/common.js -> @/utils/translator/Translator.js),
348 + // which resolves strings through window.wp.i18n.
346 349 Vite::enqueueScript(
347 350 'fluentcart-customer-js',
348 351 'public/customer-profile/Start.js',
349 - []
352 + ['wp-i18n']
350 353 )->with(CustomerProfileHandler::getLocalizationData());
351 354
352 - //will add script here/ skipping for now
355 + /**
356 + * Enqueue additional customer-dashboard assets — the hook an add-on
357 + * uses to ship the JS backing a portal section it registers through
358 + * `fluent_cart/customer_portal/profile_sections`.
359 + */
360 + do_action('fluent_cart/customer_dashboard/enqueue_assets');
353 361 }
354 362
355 363 public static function loadCartAssets()
356 364 {