From 7b9a22208ef384cb67437c4de59e2136dbb226a4 Mon Sep 17 00:00:00 2001 From: Ben Bidner Date: Mon, 18 May 2015 15:06:26 +1000 Subject: [PATCH] readds the `$the_product` global variable --- includes/admin/class-wc-admin-post-types.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php index c050e9743f6..f67ee25eb21 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -268,7 +268,7 @@ class WC_Admin_Post_Types { * @param string $column */ public function render_product_columns( $column ) { - global $post; + global $post, $the_product; if ( empty( $the_product ) || $the_product->id != $post->ID ) { $the_product = wc_get_product( $post );