Skip to content

Commit d0b13fe

Browse files
author
David Evbodaghe
committed
Fix: Clear unmapped attribute banner when attribute is deleted
1 parent c7f8356 commit d0b13fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Admin/Global_Attributes_Banner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function attribute_exists( $attribute_name ) {
152152
global $wpdb;
153153
$attribute_exists = $wpdb->get_var(
154154
$wpdb->prepare(
155-
"SELECT attribute_id FROM {$wpdb->prefix}woocommerce_attribute_taxonomies WHERE attribute_name = %s",
155+
"SELECT attribute_id FROM {$wpdb->prefix}woocommerce_attribute_taxonomies WHERE attribute_name = %s LIMIT 1",
156156
$attribute_name
157157
)
158158
);

0 commit comments

Comments
 (0)