removing unused get_product call in embed class
This commit is contained in:
parent
d36828c38c
commit
e65d2a3376
|
@ -75,10 +75,6 @@ class WC_Embed {
|
|||
// make sure we're only affecting embedded products
|
||||
if ( WC_Embed::is_embedded_product() ) {
|
||||
|
||||
// get product
|
||||
$_pf = new WC_Product_Factory();
|
||||
$_product = $_pf->get_product( get_the_ID() );
|
||||
|
||||
// add the exerpt
|
||||
$excerpt = wpautop( $excerpt );
|
||||
|
||||
|
|
Loading…
Reference in New Issue