Merge pull request #5704 from JDGrimes/wpdb-prefix-table
Don't assume the database prefix is wp_
This commit is contained in:
commit
37117409f8
|
@ -257,7 +257,7 @@ class WC_Tax {
|
||||||
AND (
|
AND (
|
||||||
locations2.location_type = 'city' AND locations2.location_code = %s
|
locations2.location_type = 'city' AND locations2.location_code = %s
|
||||||
OR 0 = (
|
OR 0 = (
|
||||||
SELECT COUNT(*) FROM wp_woocommerce_tax_rate_locations as sublocations
|
SELECT COUNT(*) FROM {$wpdb->prefix}woocommerce_tax_rate_locations as sublocations
|
||||||
WHERE sublocations.location_type = 'city'
|
WHERE sublocations.location_type = 'city'
|
||||||
AND sublocations.tax_rate_id = tax_rates.tax_rate_id
|
AND sublocations.tax_rate_id = tax_rates.tax_rate_id
|
||||||
)
|
)
|
||||||
|
@ -267,7 +267,7 @@ class WC_Tax {
|
||||||
locations.location_type = 'city'
|
locations.location_type = 'city'
|
||||||
AND locations.location_code = %s
|
AND locations.location_code = %s
|
||||||
AND 0 = (
|
AND 0 = (
|
||||||
SELECT COUNT(*) FROM wp_woocommerce_tax_rate_locations as sublocations
|
SELECT COUNT(*) FROM {$wpdb->prefix}woocommerce_tax_rate_locations as sublocations
|
||||||
WHERE sublocations.location_type = 'postcode'
|
WHERE sublocations.location_type = 'postcode'
|
||||||
AND sublocations.tax_rate_id = tax_rates.tax_rate_id
|
AND sublocations.tax_rate_id = tax_rates.tax_rate_id
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue