Set default for $plain_text variable. Closes #5051

This commit is contained in:
Mike Jolley 2014-03-06 11:57:47 +00:00
parent d42bb7a285
commit 8971dc0d92
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;