Why assign $the_product to itself?

This commit is contained in:
Mike Jolley 2015-02-03 16:14:56 +00:00
parent 037242a9a2
commit ffd512a55e
1 changed files with 1 additions and 3 deletions

View File

@ -85,9 +85,7 @@ class WC_Product_Factory {
$the_product = get_post( $the_product );
} elseif ( $the_product instanceof WC_Product ) {
$the_product = get_post( $the_product->id );
} elseif ( $the_product instanceof WP_Post ) {
$the_product = $the_product;
} else {
} elseif ( ! ( $the_product instanceof WP_Post ) ) {
$the_product = false;
}