From 7154b96ae1c2a25b5aa465b9ad94b628056f4ac1 Mon Sep 17 00:00:00 2001 From: Frank Martin Date: Tue, 22 Jan 2013 16:12:19 +0000 Subject: [PATCH] Random tab --- admin/post-types/shop_order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/post-types/shop_order.php b/admin/post-types/shop_order.php index c902c3a4db8..c21055b10c3 100644 --- a/admin/post-types/shop_order.php +++ b/admin/post-types/shop_order.php @@ -549,7 +549,7 @@ add_filter('query_vars', 'woocommerce_add_custom_query_var'); function woocommerce_delete_order_items( $postid ) { global $wpdb; - + if ( get_post_type( $postid ) == 'shop_order' ) { $wpdb->query( " @@ -557,7 +557,7 @@ function woocommerce_delete_order_items( $postid ) FROM {$wpdb->prefix}woocommerce_order_items JOIN {$wpdb->prefix}woocommerce_order_itemmeta ON {$wpdb->prefix}woocommerce_order_items.order_item_id = {$wpdb->prefix}woocommerce_order_itemmeta.order_item_id WHERE {$wpdb->prefix}woocommerce_order_items.order_id = '{$postid}'; - " ); + " ); } }