Check Email - Version 1.0.1

Version Description

Download this release

Release Info

Developer giucu91
Plugin Icon wp plugin Check Email
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

changelog.txt CHANGED
@@ -1,4 +1,7 @@
1
  == Changelog ==
 
 
 
2
 
3
  = 1.0.0 =
4
  * Added Email Logs for all the emails sent through Wordpress.
1
  == Changelog ==
2
+ = 1.0.1 =
3
+ * Fixed admin menu capabilities.
4
+ * Rezolved incompatibility with Wp Mail Logging.
5
 
6
  = 1.0.0 =
7
  * Added Email Logs for all the emails sent through Wordpress.
check-email.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Check & Log Email
4
  * Description: Check & Log email allows you to test if your WordPress installation is sending emails correctly and logs every email.
5
  * Author: WPChill
6
- * Version: 1.0.0
7
  * Author URI: https://wpchill.com/
8
  * License: GPLv3 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -95,13 +95,13 @@ function check_email_log( $plugin_file ) {
95
  $check_email->add_loadie( new \CheckEmail\Core\Request\Check_Email_Nonce_Checker() );
96
  $check_email->add_loadie( new \CheckEmail\Core\Request\Check_Email_Log_List_Action() );
97
 
98
- $capability_giver = new \CheckEmail\Core\Check_Email_Admin_Capability_Giver();
99
- $check_email->add_loadie( $capability_giver );
 
100
 
101
 
102
  // `register_activation_hook` can't be called from inside any hook.
103
  register_activation_hook( $plugin_file, array( $check_email->table_manager, 'on_activate' ) );
104
- register_activation_hook( $plugin_file, array( $capability_giver, 'add_cap_to_admin' ) );
105
 
106
  // Ideally the plugin should be loaded in a later event like `init` or `wp_loaded`.
107
  // But some plugins like EDD are sending emails in `init` event itself,
3
  * Plugin Name: Check & Log Email
4
  * Description: Check & Log email allows you to test if your WordPress installation is sending emails correctly and logs every email.
5
  * Author: WPChill
6
+ * Version: 1.0.1
7
  * Author URI: https://wpchill.com/
8
  * License: GPLv3 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
95
  $check_email->add_loadie( new \CheckEmail\Core\Request\Check_Email_Nonce_Checker() );
96
  $check_email->add_loadie( new \CheckEmail\Core\Request\Check_Email_Log_List_Action() );
97
 
98
+ $capability_giver = new \CheckEmail\Core\Check_Email_Admin_Capability_Giver();
99
+ $check_email->add_loadie( $capability_giver );
100
+ $capability_giver->add_cap_to_admin();
101
 
102
 
103
  // `register_activation_hook` can't be called from inside any hook.
104
  register_activation_hook( $plugin_file, array( $check_email->table_manager, 'on_activate' ) );
 
105
 
106
  // Ideally the plugin should be loaded in a later event like `init` or `wp_loaded`.
107
  // But some plugins like EDD are sending emails in `init` event itself,
include/Core/Check_Email_Logger.php CHANGED
@@ -60,11 +60,9 @@ class Check_Email_Logger implements Loadie {
60
  $check_email->table_manager->insert_log( $log );
61
 
62
  do_action( 'check_email_log_inserted' );
63
-
64
- return $original_mail_info;
65
  }
66
 
67
- return FALSE;
68
  }
69
 
70
  public function on_email_failed( $wp_error ) {
60
  $check_email->table_manager->insert_log( $log );
61
 
62
  do_action( 'check_email_log_inserted' );
 
 
63
  }
64
 
65
+ return $original_mail_info;
66
  }
67
 
68
  public function on_email_failed( $wp_error ) {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Check & Log Email ===
2
  Contributors: wpchill, silkalns, giucu91
3
- Tags: check, test, email, smtp, pop, send, delivery, log
4
- Requires at least: 5.2
5
  Tested up to: 5.5
6
- Stable tag: 1.0.0
7
 
8
  Check & Log email allows you to test if your WordPress installation is sending emails correctly by sending a test email to an address of your choice. Allows overriding of email headers and carbon copying to another address.
9
 
1
  === Check & Log Email ===
2
  Contributors: wpchill, silkalns, giucu91
3
+ Tags: check, test, email, smtp, pop, send, delivery
4
+ Requires at least: 5.0
5
  Tested up to: 5.5
6
+ Stable tag: 1.0.1
7
 
8
  Check & Log email allows you to test if your WordPress installation is sending emails correctly by sending a test email to an address of your choice. Allows overriding of email headers and carbon copying to another address.
9