Removed extra check if the code is executed within admin.
This commit is contained in:
parent
91839ce078
commit
a6a26633a4
|
@ -198,7 +198,6 @@ class WC_Shipping_Free_Shipping extends WC_Shipping_Method {
|
||||||
* Static so that's enqueued only once.
|
* Static so that's enqueued only once.
|
||||||
*/
|
*/
|
||||||
public static function enqueue_admin_js() {
|
public static function enqueue_admin_js() {
|
||||||
if ( is_admin() ) {
|
|
||||||
wc_enqueue_js(
|
wc_enqueue_js(
|
||||||
"jQuery( function( $ ) {
|
"jQuery( function( $ ) {
|
||||||
function wcFreeShippingShowHideMinAmountField( el ) {
|
function wcFreeShippingShowHideMinAmountField( el ) {
|
||||||
|
@ -226,4 +225,3 @@ class WC_Shipping_Free_Shipping extends WC_Shipping_Method {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue