auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -1539,12 +1539,18 @@ function wc_get_credit_card_type_label( $type ) {
|
||||
'visa' => _x( 'Visa', 'Name of credit card', 'woocommerce' ),
|
||||
'discover' => _x( 'Discover', 'Name of credit card', 'woocommerce' ),
|
||||
'american express' => _x( 'American Express', 'Name of credit card', 'woocommerce' ),
|
||||
'cartes bancaires' => _x( 'Cartes Bancaires', 'Name of credit card', 'woocommerce' ),
|
||||
'diners' => _x( 'Diners', 'Name of credit card', 'woocommerce' ),
|
||||
'jcb' => _x( 'JCB', 'Name of credit card', 'woocommerce' ),
|
||||
)
|
||||
);
|
||||
|
||||
return apply_filters( 'woocommerce_get_credit_card_type_label', ( array_key_exists( $type, $labels ) ? $labels[ $type ] : ucfirst( $type ) ) );
|
||||
/**
|
||||
* Fallback to title case, uppercasing the first letter of each word.
|
||||
*
|
||||
* @since 8.9.0
|
||||
*/
|
||||
return apply_filters( 'woocommerce_get_credit_card_type_label', ( array_key_exists( $type, $labels ) ? $labels[ $type ] : ucwords( $type ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1554,7 +1560,7 @@ function wc_get_credit_card_type_label( $type ) {
|
||||
* @param string $url URL of the page to return to.
|
||||
*/
|
||||
function wc_back_link( $label, $url ) {
|
||||
echo '<small class="wc-admin-breadcrumb"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '">⤴</a></small>';
|
||||
echo '<small class="wc-admin-breadcrumb"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '">⤴︎</a></small>';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1894,7 +1900,16 @@ function wc_get_rounding_precision() {
|
||||
if ( $precision < absint( WC_ROUNDING_PRECISION ) ) {
|
||||
$precision = absint( WC_ROUNDING_PRECISION );
|
||||
}
|
||||
return $precision;
|
||||
|
||||
/**
|
||||
* Filter the rounding precision for internal WC calculations. This is different from the number of decimals used for display.
|
||||
* Generally, this filter can be used to decrease the precision, but if you choose to decrease, there maybe side effects such as off by one rounding errors for certain tax rate combinations.
|
||||
*
|
||||
* @since 8.8.0
|
||||
*
|
||||
* @param int $precision The number of decimals to round to.
|
||||
*/
|
||||
return apply_filters( 'woocommerce_internal_rounding_precision', $precision );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user