Skip to content

Commit

Permalink
allow to delete mails
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed Jan 24, 2025
1 parent 99992ed commit 480ea48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eme-mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2109,10 +2109,12 @@ function eme_emails_page() {
if ( isset( $_POST['eme_admin_action'] ) && $_POST['eme_admin_action'] == 'deleteMails' && isset( $_POST['mail_ids'] ) ) {
check_admin_referer( 'eme_admin', 'eme_admin_nonce' );
$mail_ids = eme_sanitize_request( $_POST['mail_ids'] );
foreach ( $maili_ids as $mailing_id ) {
eme_delete_mail( $mailing_id );
if (eme_is_integer_array($mail_ids)) {
foreach ( $mail_ids as $mail_id ) {
eme_delete_mail( $mail_id );
}
}
$data_forced_tab = 'data-showtab="tab-sentmails"';
$data_forced_tab = 'data-showtab="tab-sentmail"';
}
if ( isset( $_GET['eme_admin_action'] ) && $_GET['eme_admin_action'] == 'reuse_mail' && isset( $_GET['id'] ) ) {
check_admin_referer( 'eme_admin', 'eme_admin_nonce' );
Expand Down

0 comments on commit 480ea48

Please sign in to comment.