PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.2.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.2.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | includes/Assets.php +3 -3 2.4.0 → 2.2.0 View file →
@@ -90,10 +90,10 @@
90 90 $version = isset( $script['version'] ) ? $script['version'] : SUBSCRPT_VERSION;
91 91
92 92 wp_register_script( $handle, $script['src'], $deps, $version, $in_footer );
93 93
94 - // Register script translations for scripts that use wp-i18n.
95 - if ( 'sdevs_subscrpt_cart_block' === $handle || in_array( 'wp-i18n', (array) $deps, true ) ) {
94 + // Register script translations for scripts that use wp-i18n (e.g., block assets).
95 + if ( function_exists( 'wp_set_script_translations' ) && 'sdevs_subscrpt_cart_block' === $handle ) {
96 96 wp_set_script_translations( $handle, 'subscription', SUBSCRPT_PATH . '/languages' );
97 97 }
98 98 }
99 99 }
@@ -145,9 +145,9 @@
145 145
146 146 $scripts = array(
147 147 'sdevs_subscription_admin' => array(
148 148 'src' => $plugin_js_assets_path . 'admin.js',
149 - 'deps' => array( 'jquery', 'wp-i18n' ),
149 + 'deps' => array( 'jquery' ),
150 150 'in_footer' => true,
151 151 ),
152 152 'subscrpt_admin_components' => array(
153 153 'src' => false,