We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f8356 commit d0b13feCopy full SHA for d0b13fe
includes/Admin/Global_Attributes_Banner.php
@@ -152,7 +152,7 @@ private function attribute_exists( $attribute_name ) {
152
global $wpdb;
153
$attribute_exists = $wpdb->get_var(
154
$wpdb->prepare(
155
- "SELECT attribute_id FROM {$wpdb->prefix}woocommerce_attribute_taxonomies WHERE attribute_name = %s",
+ "SELECT attribute_id FROM {$wpdb->prefix}woocommerce_attribute_taxonomies WHERE attribute_name = %s LIMIT 1",
156
$attribute_name
157
)
158
);
0 commit comments