From 2e62d34ac9bc76d2e240fa1eadbd0911f83d1e89 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 12 Jan 2012 01:08:58 +0000 Subject: [PATCH] autop --- classes/gateways/gateway-cod.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/classes/gateways/gateway-cod.php b/classes/gateways/gateway-cod.php index a6b650a1e5f..143cc3036d6 100644 --- a/classes/gateways/gateway-cod.php +++ b/classes/gateways/gateway-cod.php @@ -12,8 +12,9 @@ class woocommerce_cod extends woocommerce_payment_gateway { function __construct() { - $this->method_title = 'Cash on Delivery'; - $this->id = 'cod'; + $this->id = 'cod'; + $this->method_title = __('Cash on Delivery', 'woocommerce'); + $this->has_fields = false; // Load the form fields. $this->init_form_fields(); @@ -70,7 +71,7 @@ class woocommerce_cod extends woocommerce_payment_gateway { } function payment_fields() { // Fields for the payment form - if ($this->description) { echo '

'.$this->description.'

'; } + if ($this->description) { echo wpautop($this->description); } } // Process the payment @@ -87,7 +88,7 @@ class woocommerce_cod extends woocommerce_payment_gateway { } function thankyou() { - if ($this->instructions!='') { echo '

'.$this->instructions.'

'; } + if ($this->instructions!='') { echo wpautop($this->instructions); } } }