Update class-wc-admin-attributes.php

This commit is contained in:
Steve 2016-05-10 13:13:30 +12:00
parent ff03ca81ac
commit 2da25a7708
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class WC_Admin_Attributes {
$attribute_name = $wpdb->get_var( "SELECT attribute_name FROM {$wpdb->prefix}woocommerce_attribute_taxonomies WHERE attribute_id = $attribute_id" );
do_action( 'woocommerce_before_attribute_delete', $attribute_id, $attribute_name );
do_action( 'woocommerce_before_attribute_delete', $attribute_name );
if ( $attribute_name && $wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_attribute_taxonomies WHERE attribute_id = $attribute_id" ) ) {