Skip to content

Commit e8fc790

Browse files
committed
Added a return value in the function
1 parent d80de02 commit e8fc790

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

woocommerce-delivery-notes/includes/wcdn-template-functions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,13 @@ function wcdn_additional_product_fields( $fields, $product, $order ) {
355355

356356
/**
357357
* Check if a shipping address is enabled
358-
* Note: In v4.6.3, we have removed this function but it throws the fatal error on printing the invoice if someone have customized the invoice and copied print-content.php file in thier theme so from v4.6.4 we need to keep this function as blank.
358+
* Note: In v4.6.3, we have removed this function but it throws the fatal error on printing the invoice if someone have customized the invoice and copied print-content.php file in thier theme so from v4.6.4 we need to keep this function as blank and returning true value to avoid errors when function is called.
359359
*
360360
* @param object $order Order object.
361+
* @return boolean true
361362
*/
362363
function wcdn_has_shipping_address( $order ) {
364+
return true;
363365
}
364366

365367
/**

0 commit comments

Comments
 (0)