destroy the global!

This commit is contained in:
Bryce 2014-12-21 22:43:38 +07:00
parent 41de9936fe
commit 75c40366bc
1 changed files with 1 additions and 1 deletions

View File

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