From 0b1b8836cca8e3c0c3f596cfaadf0e3bff8f1a12 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 22 Sep 2011 13:41:16 +0100 Subject: [PATCH] Made attributes handle less generic --- admin/admin-attributes.php | 12 ++++++------ admin/admin-dashboard.php | 4 ++-- admin/admin-init.php | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/admin/admin-attributes.php b/admin/admin-attributes.php index d4690ce12d5..3e586bfd43c 100644 --- a/admin/admin-attributes.php +++ b/admin/admin-attributes.php @@ -29,7 +29,7 @@ function woocommerce_attributes() { $wpdb->insert( $wpdb->prefix . "woocommerce_attribute_taxonomies", array( 'attribute_name' => $attribute_name, 'attribute_label' => $attribute_label, 'attribute_type' => $attribute_type ), array( '%s', '%s' ) ); - wp_safe_redirect( get_admin_url() . 'admin.php?page=attributes' ); + wp_safe_redirect( get_admin_url() . 'admin.php?page=woocommerce_attributes' ); exit; endif; @@ -47,7 +47,7 @@ function woocommerce_attributes() { endif; - wp_safe_redirect( get_admin_url() . 'admin.php?page=attributes' ); + wp_safe_redirect( get_admin_url() . 'admin.php?page=woocommerce_attributes' ); exit; elseif (isset($_GET['delete'])) : @@ -71,7 +71,7 @@ function woocommerce_attributes() { endif; - wp_safe_redirect( get_admin_url() . 'admin.php?page=attributes' ); + wp_safe_redirect( get_admin_url() . 'admin.php?page=woocommerce_attributes' ); exit; endif; @@ -112,7 +112,7 @@ function woocommerce_edit_attribute() {

-
+
@@ -172,7 +172,7 @@ function woocommerce_add_attribute() { attribute_name; ?> -
|
+
|
attribute_label); ?> attribute_type); ?> @@ -207,7 +207,7 @@ function woocommerce_add_attribute() {

- +
diff --git a/admin/admin-dashboard.php b/admin/admin-dashboard.php index 26c78f1f0fa..8c1ad9d0c6c 100644 --- a/admin/admin-dashboard.php +++ b/admin/admin-dashboard.php @@ -41,10 +41,10 @@ function woocommerce_content_right_now() { - get_attribute_taxonomies()); ?> - + plugin_url() . '/assets/images/icons/menu_icons.png', 55); add_submenu_page('woocommerce', __('General Settings', 'woothemes'), __('Settings', 'woothemes') , 'manage_woocommerce', 'woocommerce', 'woocommerce_settings'); add_submenu_page('woocommerce', __('Reports', 'woothemes'), __('Reports', 'woothemes') , 'manage_woocommerce', 'woocommerce_reports', 'woocommerce_reports'); - add_submenu_page('edit.php?post_type=product', __('Attributes', 'woothemes'), __('Attributes', 'woothemes'), 'manage_woocommerce', 'attributes', 'woocommerce_attributes'); + add_submenu_page('edit.php?post_type=product', __('Attributes', 'woothemes'), __('Attributes', 'woothemes'), 'manage_woocommerce', 'woocommerce_attributes', 'woocommerce_attributes'); } function woocommerce_admin_menu_order( $menu_order ) {