PluginProbe
Route ‑ Shipping Protection / 2.4.18
Route ‑ Shipping Protection v2.4.18
2.4.19 2.4.18 2.4.17 2.4.16 2.4.15 2.4.14 2.4.13 2.4.12 2.4.11 2.4.10 2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.2.4 2.2.5 2.2.6 2.2.8 2.2.9 2.3.0 2.3.1 All 153 releases
← All changes | includes/class-routeapp-blocks-integration.php +5 -1 2.4.6 → 2.4.18 View file →
@@ -24,12 +24,16 @@
24 24 /**
25 25 * Register frontend script that whitelists the block in checkout areas.
26 26 */
27 27 public function initialize() {
28 + $deps = wp_script_is( 'wc-blocks-checkout', 'registered' )
29 + ? array( 'wc-blocks-checkout' )
30 + : array();
31 +
28 32 wp_register_script(
29 33 'route-protection-block-frontend',
30 34 plugins_url( 'blocks/route-protection/frontend.js', dirname( __FILE__ ) ),
31 - array(),
35 + $deps,
32 36 defined( 'ROUTEAPP_VERSION' ) ? ROUTEAPP_VERSION : '1.0.0',
33 37 true
34 38 );
35 39 }