From 5349171083773ab6f7191f0cf56b72d2e108cd23 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 10 Feb 2017 12:51:46 +0000 Subject: [PATCH] This panel does not show in products anyway Fixes #13133 --- includes/admin/class-wc-admin-meta-boxes.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/includes/admin/class-wc-admin-meta-boxes.php b/includes/admin/class-wc-admin-meta-boxes.php index 5273e3d7615..59e95bd85bb 100644 --- a/includes/admin/class-wc-admin-meta-boxes.php +++ b/includes/admin/class-wc-admin-meta-boxes.php @@ -143,15 +143,8 @@ class WC_Admin_Meta_Boxes { * Remove bloat. */ public function remove_meta_boxes() { - global $post; - remove_meta_box( 'postexcerpt', 'product', 'normal' ); remove_meta_box( 'product_shipping_classdiv', 'product', 'side' ); - - if ( 'product' === $post->post_type && 0 === count( get_page_templates( $post ) ) ) { - remove_meta_box( 'pageparentdiv', 'product', 'side' ); - } - remove_meta_box( 'commentsdiv', 'product', 'normal' ); remove_meta_box( 'commentstatusdiv', 'product', 'side' ); remove_meta_box( 'commentstatusdiv', 'product', 'normal' );