remove deprecated function. Closes #3582.

This commit is contained in:
Mike Jolley 2013-08-13 13:02:20 +01:00
parent f8aaef00e4
commit 0ff59bcd5b
1 changed files with 1 additions and 1 deletions

View File

@ -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;