From f5cf994a8cf0fa8acf8d80f79bdb1d4ef42cc793 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Sun, 9 Feb 2014 03:09:31 -0200 Subject: [PATCH] improved the deprecated woocommerce_placeholder_img function, closes #4684 --- includes/wc-deprecated-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wc-deprecated-functions.php b/includes/wc-deprecated-functions.php index 3dae83851ee..296a2598552 100644 --- a/includes/wc-deprecated-functions.php +++ b/includes/wc-deprecated-functions.php @@ -381,8 +381,8 @@ function woocommerce_product_post_type_link( $permalink, $post ) { function woocommerce_placeholder_img_src() { return wc_placeholder_img_src(); } -function woocommerce_placeholder_img() { - return wc_placeholder_img(); +function woocommerce_placeholder_img( $size = 'shop_thumbnail' ) { + return wc_placeholder_img( $size ); } function woocommerce_get_formatted_variation( $variation = '', $flat = false ) { return wc_get_formatted_variation( $variation, $flat );