Set `$plain_text` to false in new email addresses hook (#44178)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Thomas Roberts 2024-01-30 10:00:19 -08:00 committed by GitHub
parent 610022150e
commit d0b0c4c90b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Prevent a PHP Warning when sending order emails to the shopper and merchant.

View File

@ -47,7 +47,7 @@ $shipping = $order->get_formatted_shipping_address();
* @param bool $sent_to_admin If this email is being sent to the admin or not.
* @param bool $plain_text If this email is plain text or not.
*/
do_action( 'woocommerce_email_customer_address_section', 'billing', $order, $sent_to_admin, $plain_text );
do_action( 'woocommerce_email_customer_address_section', 'billing', $order, $sent_to_admin, false );
?>
</address>
</td>
@ -71,7 +71,7 @@ $shipping = $order->get_formatted_shipping_address();
* @param bool $sent_to_admin If this email is being sent to the admin or not.
* @param bool $plain_text If this email is plain text or not.
*/
do_action( 'woocommerce_email_customer_address_section', 'shipping', $order, $sent_to_admin, $plain_text );
do_action( 'woocommerce_email_customer_address_section', 'shipping', $order, $sent_to_admin, false );
?>
</address>
</td>