Merge pull request #8390 from tamarazuk/master

[2.3] Fix bug introduced in #8365
This commit is contained in:
Mike Jolley 2015-06-16 19:50:54 +01:00
commit 4965d0204e
1 changed files with 1 additions and 1 deletions

View File

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