From bd7f07d29f9f036d0766ae113f9de85e5b1f5a92 Mon Sep 17 00:00:00 2001 From: Tamara Zuk Date: Tue, 16 Jun 2015 14:46:54 -0400 Subject: [PATCH] [2.3] Fix bug introduced in #8365 my mistake :scream_cat: --- includes/admin/settings/class-wc-settings-emails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/settings/class-wc-settings-emails.php b/includes/admin/settings/class-wc-settings-emails.php index 5bb83db8dc9..ca1a52310ff 100644 --- a/includes/admin/settings/class-wc-settings-emails.php +++ b/includes/admin/settings/class-wc-settings-emails.php @@ -203,7 +203,7 @@ class WC_Settings_Emails extends WC_Settings_Page { if ( in_array( $current_section, array_map( 'sanitize_title', array_keys( $wc_emails->get_emails() ) ) ) ) { foreach ( $wc_emails->get_emails() as $email_id => $email ) { if ( $current_section === sanitize_title( $email_id ) ) { - do_action( 'woocommerce_update_options_' . $this->id . '_' . $email_id ); + do_action( 'woocommerce_update_options_' . $this->id . '_' . $email->id ); } } } else {