readds the `$the_product` global variable

This commit is contained in:
Ben Bidner 2015-05-18 15:06:26 +10:00 committed by Mike Jolley
parent c8dd2b6268
commit 7b9a22208e
1 changed files with 1 additions and 1 deletions

View File

@ -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 );