From 373ebbb254beeacf69765a2d56d12e4162167660 Mon Sep 17 00:00:00 2001
From: Lai Power
' . __( 'Message failed!', 'subscribe2' ) . '
' . $error_message . $phpmailer->ErrorInfo; - } - echo '' . wp_kses_post( $message ) . '
' . esc_html__( 'Options reset!', 'subscribe2' ) . '
' . esc_html__( 'Preview message(s) sent to logged in user', 'subscribe2' ) . '
' . esc_html__( 'Attempt made to resend the Digest Notification email', 'subscribe2' ) . '
' . esc_html__( 'The Digest Notification email contained no post information. No email was sent', 'subscribe2' ) . '
' . esc_html__( 'Options saved!', 'subscribe2' ) . '
' . esc_html__( 'You must create a WordPress page for this plugin to work correctly.', 'subscribe2' ) . '
' . esc_html__( 'Your Settings may breach GDPR', 'subscribe2' ) . '
' . esc_html( $disallowed_keywords ) . '
' . esc_html( implode( ', ', $disallowed ) ) . '
' . wp_kses_post( $template_link ) . '
' . sprintf( __( 'You appear to be sending notifications from %1$s, which has a different domain name than your blog server %2$s. This may result in failed emails.', 'subscribe2' ), $sender, $_SERVER['SERVER_NAME'] ) . '
' . esc_html__( 'Security error! Your request cannot be completed.', 'subscribe2' ) . '
' ); - } - - if ( ! empty( $_POST['addresses'] ) ) { - $reg_sub_error = ''; - $pub_sub_error = ''; - $unsub_error = ''; - $email_error = ''; - $message = ''; - foreach ( preg_split( '/[\s,]+/', $_POST['addresses'] ) as $email ) { - $clean_email = $this->sanitize_email( $email ); - if ( false === $this->validate_email( $clean_email ) ) { - ( '' === $email_error ) ? $email_error = "$email" : $email_error .= ", $email"; - continue; - } else { - if ( isset( $_POST['subscribe'] ) ) { - if ( false !== $this->is_public( $clean_email ) ) { - ( '' === $pub_sub_error ) ? $pub_sub_error = "$clean_email" : $pub_sub_error .= ", $clean_email"; - continue; - } - if ( $this->is_registered( $clean_email ) ) { - ( '' === $reg_sub_error ) ? $reg_sub_error = "$clean_email" : $reg_sub_error .= ", $clean_email"; - continue; - } - $this->add( $clean_email, true ); - $message = __( 'Address(es) subscribed!', 'subscribe2' ); - } elseif ( isset( $_POST['unsubscribe'] ) ) { - if ( false === $this->is_public( $clean_email ) || $this->is_registered( $clean_email ) ) { - ( '' === $unsub_error ) ? $unsub_error = "$clean_email" : $unsub_error .= ", $clean_email"; - continue; - } - $this->delete( $clean_email ); - $message = __( 'Address(es) unsubscribed!', 'subscribe2' ); - } - } - } - if ( '' !== $reg_sub_error ) { - echo '' . esc_html__( 'Some emails were not processed, the following are already Registered Subscribers', 'subscribe2' ) . ':
' . esc_html( $reg_sub_error ) . '
' . esc_html__( 'Some emails were not processed, the following are already Public Subscribers', 'subscribe2' ) . ':
' . esc_html( $pub_sub_error ) . '
' . esc_html__( 'Some emails were not processed, the following were not in the database', 'subscribe2' ) . ':
' . esc_html( $unsub_error ) . '
' . esc_html__( 'Some emails were not processed, the following were invalid email addresses', 'subscribe2' ) . ':
' . esc_html( $email_error ) . '
' . esc_html( $message ) . '
' . esc_html__( 'Reminder Email(s) Sent!', 'subscribe2' ) . '
' . esc_html__( 'Registered Users Subscribed!', 'subscribe2' ) . '
' . esc_html__( 'Registered Users Unsubscribed!', 'subscribe2' ) . '
' . esc_html__( 'Format updated for Selected Registered Users!', 'subscribe2' ) . '
' . esc_html__( 'Digest Subscription updated for Selected Registered Users!', 'subscribe2' ) . '