diff --git a/includes/admin/class-wc-admin-taxonomies.php b/includes/admin/class-wc-admin-taxonomies.php
new file mode 100644
index 00000000000..52fe10cb694
--- /dev/null
+++ b/includes/admin/class-wc-admin-taxonomies.php
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+ term_id, 'display_type', true );
+ $image = '';
+ $thumbnail_id = absint( get_woocommerce_term_meta( $term->term_id, 'thumbnail_id', true ) );
+ if ( $thumbnail_id )
+ $image = wp_get_attachment_url( $thumbnail_id );
+ else
+ $image = woocommerce_placeholder_img_src();
+ ?>
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+ |
+
+ ';
+
+ }
+
+ return $columns;
+ }
+}
+
+endif;
+
+return new WC_Admin_Taxonomies();
\ No newline at end of file
diff --git a/includes/admin/class-wc-admin.php b/includes/admin/class-wc-admin.php
index b35c11d7f0d..950e932adbb 100644
--- a/includes/admin/class-wc-admin.php
+++ b/includes/admin/class-wc-admin.php
@@ -50,12 +50,6 @@ class WC_Admin {
*/
include_once( 'woocommerce-admin-functions.php' );
- /**
- * Functions for handling taxonomies
- */
- include_once( 'woocommerce-admin-taxonomies.php' );
-
-
// Functions
include( 'wc-admin-functions.php' );
@@ -67,6 +61,7 @@ class WC_Admin {
include( 'class-wc-admin-assets.php' );
include( 'class-wc-admin-permalink-settings.php' );
include( 'class-wc-admin-post-types.php' );
+ include( 'class-wc-admin-taxonomies.php' );
// Importers
if ( defined( 'WP_LOAD_IMPORTERS' ) )
diff --git a/includes/admin/woocommerce-admin-taxonomies.php b/includes/admin/woocommerce-admin-taxonomies.php
deleted file mode 100644
index e23ba0ad6d5..00000000000
--- a/includes/admin/woocommerce-admin-taxonomies.php
+++ /dev/null
@@ -1,370 +0,0 @@
-
-
-
-
-
-
- term_id, 'display_type', true );
- $image = '';
- $thumbnail_id = absint( get_woocommerce_term_meta( $term->term_id, 'thumbnail_id', true ) );
- if ($thumbnail_id) :
- $image = wp_get_attachment_url( $thumbnail_id );
- else :
- $image = woocommerce_placeholder_img_src();
- endif;
- ?>
-
- |
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
- |
-
- id, '-' ) ) {
-
- $option = 'edit_' . str_replace( 'edit-', '', $screen->id ) . '_per_page';
-
- if ( isset( $_POST['wp_screen_options']['option'] ) && $_POST['wp_screen_options']['option'] == $option ) {
-
- update_user_meta( get_current_user_id(), $option, $_POST['wp_screen_options']['value'] );
-
- wp_redirect( remove_query_arg( array('pagenum', 'apage', 'paged'), wp_get_referer() ) );
- exit;
-
- }
-
- $user_per_page = (int) get_user_meta( get_current_user_id(), $option, true );
-
- if ( $user_per_page )
- $per_page = $user_per_page;
-
- }
-
- return $per_page;
-}
-
-add_filter( 'edit_posts_per_page', 'woocommerce_fix_edit_posts_per_page', 1, 2 );
-
-
-/**
- * Thumbnail column added to category admin.
- *
- * @access public
- * @param mixed $columns
- * @return void
- */
-function woocommerce_product_cat_columns( $columns ) {
- $new_columns = array();
- $new_columns['cb'] = $columns['cb'];
- $new_columns['thumb'] = __( 'Image', 'woocommerce' );
-
- unset( $columns['cb'] );
-
- return array_merge( $new_columns, $columns );
-}
-
-add_filter( 'manage_edit-product_cat_columns', 'woocommerce_product_cat_columns' );
-
-
-/**
- * Thumbnail column value added to category admin.
- *
- * @access public
- * @param mixed $columns
- * @param mixed $column
- * @param mixed $id
- * @return void
- */
-function woocommerce_product_cat_column( $columns, $column, $id ) {
- global $woocommerce;
-
- if ( $column == 'thumb' ) {
-
- $image = '';
- $thumbnail_id = get_woocommerce_term_meta( $id, 'thumbnail_id', true );
-
- if ($thumbnail_id)
- $image = wp_get_attachment_url( $thumbnail_id );
- else
- $image = woocommerce_placeholder_img_src();
-
- $columns .= '';
-
- }
-
- return $columns;
-}
-
-add_filter( 'manage_product_cat_custom_column', 'woocommerce_product_cat_column', 10, 3 );
-
-
-/**
- * Add a configure button column for the shipping classes page.
- *
- * @access public
- * @param mixed $columns
- * @return void
- */
-function woocommerce_shipping_class_columns( $columns ) {
- $columns['edit'] = ' ';
- return $columns;
-}
-
-add_filter( 'manage_edit-product_shipping_class_columns', 'woocommerce_shipping_class_columns' );
-
-
-/**
- * Add a configure button for the shipping classes page.
- *
- * @access public
- * @param mixed $columns
- * @param mixed $column
- * @param mixed $id
- * @return void
- */
-function woocommerce_shipping_class_column( $columns, $column, $id ) {
- if ( $column == 'edit' )
- $columns .= ''.__( 'Edit Class', 'woocommerce' ).'';
-
- return $columns;
-}
-
-add_filter( 'manage_product_shipping_class_custom_column', 'woocommerce_shipping_class_column', 10, 3 );
\ No newline at end of file