_args['plural'] ) ) { die( '
' . 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' ) . '