From 627beecd4270b55a00b34f704d623dcb075888ec Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 17 Oct 2016 15:56:16 +0100 Subject: [PATCH] Missing var --- includes/abstracts/abstract-wc-product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-product.php b/includes/abstracts/abstract-wc-product.php index 104e40ce1d1..d4f51b08e95 100644 --- a/includes/abstracts/abstract-wc-product.php +++ b/includes/abstracts/abstract-wc-product.php @@ -632,7 +632,7 @@ class WC_Product extends WC_Abstract_Legacy_Product { * @since 2.7.0 * @param string $timestamp Sale to date. */ - public function set_date_on_sale_to( $date ) { + public function set_date_on_sale_to( $timestamp ) { return $this->data['date_on_sale_to'] = is_numeric( $timestamp ) ? $timestamp : strtotime( $timestamp ); }