Skip to content

Commit daec026

Browse files
committed
Fatal error was coming on installing the latest git version.
1 parent 4387519 commit daec026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce-delivery-notes/includes/wcdn-all-component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function example_custom_order_fields( $fields, $order ) {
242242
243243
<pre>
244244
function example_product_image( $product ) {
245-
if( ( '' !== $product->get_id() ) && has_post_thumbnail( $product->get_id() ) ) {
245+
if( isset( $product->get_id() ) && ( \'\' !== $product->get_id() ) && has_post_thumbnail( $product->get_id ) ) {
246246
echo get_the_post_thumbnail(
247247
$product->get_id(),
248248
array( 40, 40 ),

0 commit comments

Comments
 (0)