From 7ba14b4bd74dbf5d9a6b3821779bbe44f5260e73 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Sun, 23 Mar 2014 19:49:52 -0300 Subject: [PATCH] becomes possible to translate the credit card form placeholders --- .../abstracts/abstract-wc-payment-gateway.php | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/includes/abstracts/abstract-wc-payment-gateway.php b/includes/abstracts/abstract-wc-payment-gateway.php index 6e9eb00e4f2..cac1fce41d9 100644 --- a/includes/abstracts/abstract-wc-payment-gateway.php +++ b/includes/abstracts/abstract-wc-payment-gateway.php @@ -156,22 +156,22 @@ abstract class WC_Payment_Gateway extends WC_Settings_API { */ public function validate_fields() { return true; } - /** - * If There are no payment fields show the description if set. - * Override this in your gateway if you have some. - * - * @access public - * @return void - */ - public function payment_fields() { - if ( $description = $this->get_description() ) { - echo wpautop( wptexturize( $description ) ); - } + /** + * If There are no payment fields show the description if set. + * Override this in your gateway if you have some. + * + * @access public + * @return void + */ + public function payment_fields() { + if ( $description = $this->get_description() ) { + echo wpautop( wptexturize( $description ) ); + } - if ( $this->supports( 'default_credit_card_form' ) ) { - $this->credit_card_form(); - } - } + if ( $this->supports( 'default_credit_card_form' ) ) { + $this->credit_card_form(); + } + } /** * Check if a gateway supports a given feature. @@ -204,16 +204,16 @@ abstract class WC_Payment_Gateway extends WC_Settings_API { $default_fields = array( 'card-number-field' => '

- +

', 'card-expiry-field' => '

- - + +

', 'card-cvc-field' => '

- - + +

' );