Set is_enabled=1 instead of is_enabled=true
This commit is contained in:
parent
33b0bef8c5
commit
de7ca06b41
|
@ -1506,7 +1506,7 @@ function wc_get_shipping_method_count( $include_legacy = false ) {
|
|||
return absint( $transient_value['value'] );
|
||||
}
|
||||
|
||||
$method_count = absint( $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}woocommerce_shipping_zone_methods WHERE is_enabled=true" ) );
|
||||
$method_count = absint( $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}woocommerce_shipping_zone_methods WHERE is_enabled=1" ) );
|
||||
|
||||
if ( $include_legacy ) {
|
||||
// Count activated methods that don't support shipping zones.
|
||||
|
|
Loading…
Reference in New Issue