diff --git a/includes/gateways/cod/class-wc-gateway-cod.php b/includes/gateways/cod/class-wc-gateway-cod.php index 2f3300b2f17..a4e502569e7 100644 --- a/includes/gateways/cod/class-wc-gateway-cod.php +++ b/includes/gateways/cod/class-wc-gateway-cod.php @@ -51,10 +51,11 @@ class WC_Gateway_COD extends WC_Payment_Gateway { public function init_form_fields() { $shipping_methods = array(); - if ( is_admin() ) + if ( is_admin() ) { foreach ( WC()->shipping()->load_shipping_methods() as $method ) { - $shipping_methods[ $method->id ] = $method->get_title(); + $shipping_methods[ $method->id ] = $method->get_method_title(); } + } $this->form_fields = array( 'enabled' => array( diff --git a/readme.txt b/readme.txt index d62d5de9716..daefdcea4d8 100644 --- a/readme.txt +++ b/readme.txt @@ -158,6 +158,9 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == += 2.6.4 - xx/xx/16 = +* Fix - Shipping method title display in COD settings. + = 2.6.3 - 19/07/16 = * Fix - Security - Escape captions in product-thumbnail and product-image templates (template versions have been bumped). * Fix - Fixed how we calculate shipping tax rates when using more than one tax class.