Merge pull request #12865 from woocommerce/remove-default-instructions

Removed default instructions
This commit is contained in:
Mike Jolley 2017-01-18 10:31:21 +00:00 committed by GitHub
commit f9f6ac175b
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
// Define user set variables
$this->title = $this->get_option( 'title' );
$this->description = $this->get_option( 'description' );
$this->instructions = $this->get_option( 'instructions', $this->description );
$this->instructions = $this->get_option( 'instructions' );
// BACS account fields shown on the thanks page and in emails
$this->account_details = get_option( 'woocommerce_bacs_accounts',

View File

@ -34,7 +34,7 @@ class WC_Gateway_Cheque extends WC_Payment_Gateway {
// Define user set variables
$this->title = $this->get_option( 'title' );
$this->description = $this->get_option( 'description' );
$this->instructions = $this->get_option( 'instructions', $this->description );
$this->instructions = $this->get_option( 'instructions' );
// Actions
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );

View File

@ -31,7 +31,7 @@ class WC_Gateway_COD extends WC_Payment_Gateway {
// Get settings
$this->title = $this->get_option( 'title' );
$this->description = $this->get_option( 'description' );
$this->instructions = $this->get_option( 'instructions', $this->description );
$this->instructions = $this->get_option( 'instructions' );
$this->enable_for_methods = $this->get_option( 'enable_for_methods', array() );
$this->enable_for_virtual = $this->get_option( 'enable_for_virtual', 'yes' ) === 'yes' ? true : false;