Use sprintf, no printf when setting the variable

This commit is contained in:
Jacob Arriola 2021-03-26 08:55:24 -07:00 committed by GitHub
parent 5b02c440d7
commit 76744da6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1221,7 +1221,7 @@ class WC_Cart extends WC_Legacy_Cart {
$stock_quantity = $product_data->get_stock_quantity();
$stock_quantity_in_cart = $products_qty_in_cart[ $product_data->get_stock_managed_by_id() ];
$message = printf(
$message = sprintf(
'<a href="%s" class="button wc-forward">%s</a> %s',
wc_get_cart_url(),
__( 'View cart', 'woocommerce' ),