destroy the global!
This commit is contained in:
parent
41de9936fe
commit
75c40366bc
|
@ -102,7 +102,7 @@ class WC_Admin_Post_Types {
|
||||||
*/
|
*/
|
||||||
public function product_columns( $existing_columns ) {
|
public function product_columns( $existing_columns ) {
|
||||||
|
|
||||||
global $current_screen;
|
$current_screen = get_current_screen();
|
||||||
|
|
||||||
// Check we're on the correct post type
|
// Check we're on the correct post type
|
||||||
if ( 'product' != $current_screen->post_type ) {
|
if ( 'product' != $current_screen->post_type ) {
|
||||||
|
|
Loading…
Reference in New Issue