get_type has no args

This commit is contained in:
Mike Jolley 2015-06-08 12:22:26 +01:00
parent 983041209b
commit bb4c303c39
1 changed files with 1 additions and 2 deletions

View File

@ -296,10 +296,9 @@ class WC_Product {
/**
* Return the product type.
*
* @param string $type Array or string of types
* @return string
*/
public function get_type( $type ) {
public function get_type() {
return is_null( $this->product_type ) ? '' : $this->product_type;
}