Set default for $plain_text variable. Closes #5051
This commit is contained in:
parent
c3d5111c8d
commit
6e466d4fdb
|
@ -221,7 +221,7 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
|
||||||
* @param bool $plain_text
|
* @param bool $plain_text
|
||||||
* @return void
|
* @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' ) {
|
if ( $sent_to_admin || $order->status !== 'on-hold' || $order->payment_method !== 'bacs' ) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -94,7 +94,7 @@ class WC_Gateway_Cheque extends WC_Payment_Gateway {
|
||||||
* @param bool $sent_to_admin
|
* @param bool $sent_to_admin
|
||||||
* @param bool $plain_text
|
* @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' )
|
if ( $sent_to_admin || $order->status !== 'on-hold' || $order->payment_method !== 'cheque' )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue