From e6038486d99d9c35b63b0f36470cc2db2e8d6a43 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 3 Feb 2015 11:06:50 +0700 Subject: [PATCH] Fix 5.2 func_args issue --- includes/class-wc-emails.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-emails.php b/includes/class-wc-emails.php index cf1929e6fb8..f13c779c035 100644 --- a/includes/class-wc-emails.php +++ b/includes/class-wc-emails.php @@ -84,7 +84,8 @@ class WC_Emails { */ public static function send_transactional_email() { self::instance(); - do_action_ref_array( current_filter() . '_notification', func_get_args() ); + $args = func_get_args(); + do_action_ref_array( current_filter() . '_notification', $args ); } /**