Set default for $plain_text variable. Closes #5051
This commit is contained in:
parent
d42bb7a285
commit
8971dc0d92
|
@ -221,7 +221,7 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
|
|||
* @param bool $plain_text
|
||||
* @return void
|
||||
*/
|
||||
public function email_instructions( $order, $sent_to_admin, $plain_text ) {
|
||||
public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
|
||||
|
||||
if ( $sent_to_admin || $order->status !== 'on-hold' || $order->payment_method !== 'bacs' ) {
|
||||
return;
|
||||
|
|
|
@ -94,7 +94,7 @@ class WC_Gateway_Cheque extends WC_Payment_Gateway {
|
|||
* @param bool $sent_to_admin
|
||||
* @param bool $plain_text
|
||||
*/
|
||||
public function email_instructions( $order, $sent_to_admin, $plain_text ) {
|
||||
public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
|
||||
if ( $sent_to_admin || $order->status !== 'on-hold' || $order->payment_method !== 'cheque' )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue