Set is_enabled=1 instead of is_enabled=true

This commit is contained in:
Albert Juhé Lluveras 2020-02-26 15:08:28 +01:00
parent 33b0bef8c5
commit de7ca06b41
1 changed files with 1 additions and 1 deletions

View File

@ -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.