Email Log - Version 2.4.5

Version Description

Improved admin performance and reduced network calls.

Download this release

Release Info

Developer sudar
Plugin Icon 128x128 Email Log
Version 2.4.5
Comparing to
See all releases

Code changes from version 2.4.4 to 2.4.5

email-log.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Logs every email sent through WordPress
6
  * Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  * Author: Sudar
8
- * Version: 2.4.4
9
  * Author URI: http://sudarmuthu.com/
10
  * Text Domain: email-log
11
  * Domain Path: languages/
5
  * Description: Logs every email sent through WordPress
6
  * Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  * Author: Sudar
8
+ * Version: 2.4.5
9
  * Author URI: http://sudarmuthu.com/
10
  * Text Domain: email-log
11
  * Domain Path: languages/
include/Addon/EmailLogAddon.php CHANGED
@@ -49,6 +49,17 @@ abstract class EmailLogAddon implements Loadie {
49
  * Load the add-on and setup hooks.
50
  */
51
  public function load() {
 
 
 
 
 
 
 
 
 
 
 
52
  if ( is_null( $this->updater ) ) {
53
  return;
54
  }
49
  * Load the add-on and setup hooks.
50
  */
51
  public function load() {
52
+ if ( \EmailLog\Util\is_admin_non_ajax_request() ) {
53
+ $email_log = email_log();
54
+
55
+ if ( ! $email_log->is_plugin_api_overridden() ) {
56
+ $override_plugin_api = new \EmailLog\Core\Request\OverridePluginAPI();
57
+ $override_plugin_api->load();
58
+
59
+ $email_log->plugin_api_overridden();
60
+ }
61
+ }
62
+
63
  if ( is_null( $this->updater ) ) {
64
  return;
65
  }
include/Core/EmailLog.php CHANGED
@@ -17,7 +17,7 @@ class EmailLog {
17
  *
18
  * @var string
19
  */
20
- const VERSION = '2.4.4';
21
 
22
  /**
23
  * Email Log Store URL.
@@ -34,6 +34,16 @@ class EmailLog {
34
  */
35
  private $loaded = false;
36
 
 
 
 
 
 
 
 
 
 
 
37
  /**
38
  * Plugin file path.
39
  *
@@ -171,6 +181,26 @@ class EmailLog {
171
  do_action( 'el_loaded' );
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  /**
175
  * Return Email Log version.
176
  *
17
  *
18
  * @var string
19
  */
20
+ const VERSION = '2.4.5';
21
 
22
  /**
23
  * Email Log Store URL.
34
  */
35
  private $loaded = false;
36
 
37
+ /**
38
+ * Flag to override plugin API.
39
+ *
40
+ * @since 2.4.5
41
+ * @access private
42
+ *
43
+ * @var bool
44
+ */
45
+ private $plugins_api_overridden = false;
46
+
47
  /**
48
  * Plugin file path.
49
  *
181
  do_action( 'el_loaded' );
182
  }
183
 
184
+ /**
185
+ * Plugin API has been overridden.
186
+ *
187
+ * @since 2.4.5
188
+ */
189
+ public function plugin_api_overridden() {
190
+ $this->plugins_api_overridden = true;
191
+ }
192
+
193
+ /**
194
+ * Has the plugin API have been overridden?
195
+ *
196
+ * @since 2.4.5
197
+ *
198
+ * @return bool True if overridden, False otherwise.
199
+ */
200
+ public function is_plugin_api_overridden() {
201
+ return $this->plugins_api_overridden;
202
+ }
203
+
204
  /**
205
  * Return Email Log version.
206
  *
languages/email-log.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Email Log package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Email Log 2.4.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
7
- "POT-Creation-Date: 2021-03-28 03:54:23+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Email Log package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Email Log 2.4.5\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
7
+ "POT-Creation-Date: 2021-04-13 02:00:18+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
load-email-log.php CHANGED
@@ -47,7 +47,6 @@ function load_email_log( $plugin_file ) {
47
 
48
  $email_log->add_loadie( new \EmailLog\Addon\Upseller() );
49
  $email_log->add_loadie( new \EmailLog\Addon\DependencyEnforcer() );
50
- $email_log->add_loadie( new \EmailLog\Core\Request\OverridePluginAPI() );
51
  }
52
 
53
  $email_log->add_loadie( new \EmailLog\Core\EmailLogger() );
47
 
48
  $email_log->add_loadie( new \EmailLog\Addon\Upseller() );
49
  $email_log->add_loadie( new \EmailLog\Addon\DependencyEnforcer() );
 
50
  }
51
 
52
  $email_log->add_loadie( new \EmailLog\Core\EmailLogger() );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: email, log, log email, resend email, multisite
4
  Requires PHP: 5.6
5
  Requires at least: 4.0
6
  Tested up to: 5.7
7
- Stable tag: 2.4.4
8
 
9
  Log and view all outgoing emails from WordPress. Very useful if you have to debug email related problems or have to store sent emails for auditing.
10
 
@@ -133,6 +133,9 @@ Meanwhile, I have added a hack to handle this condition in v1.7.3 of my plugin.
133
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
134
  == Changelog ==
135
 
 
 
 
136
  = v2.4.4 – (2021-03-28) =
137
  - Tweak: Use the jQuery UI that is bundled with WordPress.
138
  - Tweak: Don't load add-on information from a local json file.
@@ -355,6 +358,9 @@ This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/
355
 
356
  == Upgrade Notice ==
357
 
 
 
 
358
  = 2.4.1 =
359
  Starting v2.4.0 the plugin now captures the error message when an email fails to be delivered.
360
 
4
  Requires PHP: 5.6
5
  Requires at least: 4.0
6
  Tested up to: 5.7
7
+ Stable tag: 2.4.5
8
 
9
  Log and view all outgoing emails from WordPress. Very useful if you have to debug email related problems or have to store sent emails for auditing.
10
 
133
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
134
  == Changelog ==
135
 
136
+ = v2.4.5 – (2021-04-13) =
137
+ - Fix: Don't override WordPress plugin update in base plugin.
138
+
139
  = v2.4.4 – (2021-03-28) =
140
  - Tweak: Use the jQuery UI that is bundled with WordPress.
141
  - Tweak: Don't load add-on information from a local json file.
358
 
359
  == Upgrade Notice ==
360
 
361
+ = 2.4.5 =
362
+ Improved admin performance and reduced network calls.
363
+
364
  = 2.4.1 =
365
  Starting v2.4.0 the plugin now captures the error message when an email fails to be delivered.
366