Skip to content

Commit 2b7e76c

Browse files
authored
Merge pull request #196 from TycheSoftwares/fatal_error
Fatal error was coming on installing the latest git version.
2 parents 4387519 + daec026 commit 2b7e76c

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)