This panel does not show in products anyway

Fixes #13133
This commit is contained in:
Mike Jolley 2017-02-10 12:51:46 +00:00
parent e97d30859c
commit 5349171083
1 changed files with 0 additions and 7 deletions

View File

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