From 465b9b9d5fd965644b4d3b0cfd040c8355a6a79d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 20 Feb 2014 15:16:53 +0000 Subject: [PATCH] Only show settings link if method has_settings --- includes/admin/settings/class-wc-settings-shipping.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/admin/settings/class-wc-settings-shipping.php b/includes/admin/settings/class-wc-settings-shipping.php index da3e106989e..9ec31cd7e3b 100644 --- a/includes/admin/settings/class-wc-settings-shipping.php +++ b/includes/admin/settings/class-wc-settings-shipping.php @@ -237,9 +237,13 @@ class WC_Settings_Shipping extends WC_Settings_Page { echo '-'; echo ' - - ' . __( 'Settings', 'woocommerce' ) . ' - + '; + + if ( $method->has_settings ) { + echo '' . __( 'Settings', 'woocommerce' ) . ''; + } + + echo ' '; } ?>