Merge pull request #15682 from 1do/master

Changed misspelled filter name
This commit is contained in:
Mike Jolley 2017-06-20 08:49:05 +01:00 committed by GitHub
commit 22c79b2ba2
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ class WC_Deprecated_Filter_Hooks extends WC_Deprecated_Hooks {
'default_checkout_billing_state' => 'default_checkout_state',
'default_checkout_billing_postcode' => 'default_checkout_postcode',
'woocommerce_system_status_environment_rows' => 'woocommerce_debug_posting',
'woocommerce_credit_card_type_labels' => 'wocommerce_credit_card_type_labels',
);
/**

View File

@ -1231,7 +1231,7 @@ function wc_get_credit_card_type_label( $type ) {
$type = str_replace( '-', ' ', $type );
$type = str_replace( '_', ' ', $type );
$labels = apply_filters( 'wocommerce_credit_card_type_labels', array(
$labels = apply_filters( 'woocommerce_credit_card_type_labels', array(
'mastercard' => __( 'MasterCard', 'woocommerce' ),
'visa' => __( 'Visa', 'woocommerce' ),
'discover' => __( 'Discover', 'woocommerce' ),