From 75c40366bc78fad107b82a30a4df4be6adbe62a4 Mon Sep 17 00:00:00 2001 From: Bryce Date: Sun, 21 Dec 2014 22:43:38 +0700 Subject: [PATCH] destroy the global! --- 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 3aa554947d0..6cf6c6beaa8 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -102,7 +102,7 @@ class WC_Admin_Post_Types { */ public function product_columns( $existing_columns ) { - global $current_screen; + $current_screen = get_current_screen(); // Check we're on the correct post type if ( 'product' != $current_screen->post_type ) {