From 5ca998ddd8427110b1b7eec3261c5ccf3a94fb12 Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 21 Jan 2020 20:14:23 +0000 Subject: fix post_id wp_error convert and duplicate emails --- Postman/Postman-Email-Log/PostmanEmailLogService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Postman/Postman-Email-Log') diff --git a/Postman/Postman-Email-Log/PostmanEmailLogService.php b/Postman/Postman-Email-Log/PostmanEmailLogService.php index ec50745..457baf9 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogService.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogService.php @@ -167,8 +167,9 @@ if ( ! class_exists( 'PostmanEmailLogService' ) ) { $message = $post_id->get_error_message(); printf( '

%2$s

', esc_attr( $class ), esc_html( $message ) ); - return; }); + + return; } $this->logger->debug( sprintf( 'Saved message #%s to the database', $post_id ) ); -- cgit v1.2.3