remove deprecated function. Closes #3582.
This commit is contained in:
parent
f8aaef00e4
commit
0ff59bcd5b
|
@ -47,7 +47,7 @@ class WC_Product_Factory {
|
|||
}
|
||||
|
||||
// Create a WC coding standards compliant class name e.g. WC_Product_Type_Class instead of WC_Product_type-class
|
||||
$classname = 'WC_Product_' . preg_replace( '/-(.)/e', "'_' . strtoupper( '$1' )", ucfirst( $product_type ) );
|
||||
$classname = 'WC_Product_' . implode( '_', array_map( 'ucfirst', explode( '-', $product_type ) ) );
|
||||
} else {
|
||||
$classname = false;
|
||||
$product_type = false;
|
||||
|
|
Loading…
Reference in New Issue