Missing var

This commit is contained in:
Mike Jolley 2016-10-17 15:56:16 +01:00
parent eb61503210
commit b254ecf16d
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @since 2.7.0 * @since 2.7.0
* @param string $timestamp Sale to date. * @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 ); return $this->data['date_on_sale_to'] = is_numeric( $timestamp ) ? $timestamp : strtotime( $timestamp );
} }