Merge branch 'philmeadows-patch-1'

This commit is contained in:
Mike Jolley 2014-06-25 13:57:36 +01:00
parent 6390e387e2
commit 021431f012
1 changed files with 1 additions and 0 deletions

View File

@ -1010,6 +1010,7 @@ class WC_Meta_Box_Product_Data {
WHERE $wpdb->posts.post_type = 'product'
AND $wpdb->posts.post_status = 'publish'
AND $wpdb->postmeta.meta_key = '_sku' AND $wpdb->postmeta.meta_value = '%s'
AND $wpdb->postmeta.post_id <> $post_id LIMIT 1
", $new_sku ) )
) {