orphaned variations cause "failed to load results" issue
This commit is contained in:
parent
9126a13a1c
commit
5597a2750b
|
@ -1809,6 +1809,10 @@ class WC_AJAX {
|
|||
continue;
|
||||
}
|
||||
|
||||
if ( ! $product || ( $product->is_type( 'variation' ) && empty( $product->parent ) ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$found_products[ $post ] = rawurldecode( $product->get_formatted_name() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue