Email Log - Version 2.4.7

Version Description

Download this release

Release Info

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

Code changes from version 2.4.6 to 2.4.7

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.6
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.7
9
  * Author URI: http://sudarmuthu.com/
10
  * Text Domain: email-log
11
  * Domain Path: languages/
include/Core/DB/TableManager.php CHANGED
@@ -295,7 +295,7 @@ class TableManager implements Loadie {
295
  }
296
 
297
  // Ordering parameters.
298
- $order_by = 'send_date';
299
  $order = 'DESC';
300
 
301
  $allowed_order_by = [
@@ -304,12 +304,12 @@ class TableManager implements Loadie {
304
  'subject',
305
  ];
306
 
307
- $sanitized_order_by = sanitize_text_field( $request['orderby'] );
308
- if ( ! empty( $request['orderby'] ) && in_array( $sanitized_order_by, $allowed_order_by, true ) ) {
309
  $order_by = $sanitized_order_by;
310
  }
311
 
312
- if ( ! empty( $request['order'] ) && 'ASC' === sanitize_text_field( $request['order'] ) ) {
313
  $order = 'ASC';
314
  }
315
 
295
  }
296
 
297
  // Ordering parameters.
298
+ $order_by = 'sent_date';
299
  $order = 'DESC';
300
 
301
  $allowed_order_by = [
304
  'subject',
305
  ];
306
 
307
+ $sanitized_order_by = ( ! empty( $request['orderby'] ) ) ? sanitize_text_field( $request['orderby'] ) : '';
308
+ if ( ! empty( $sanitized_order_by ) && in_array( $sanitized_order_by, $allowed_order_by, true ) ) {
309
  $order_by = $sanitized_order_by;
310
  }
311
 
312
+ if ( ! empty( $request['order'] ) && 'asc' === strtolower( sanitize_text_field( $request['order'] ) ) ) {
313
  $order = 'ASC';
314
  }
315
 
include/Core/EmailLog.php CHANGED
@@ -17,7 +17,7 @@ class EmailLog {
17
  *
18
  * @var string
19
  */
20
- const VERSION = '2.4.6';
21
 
22
  /**
23
  * Email Log Store URL.
17
  *
18
  * @var string
19
  */
20
+ const VERSION = '2.4.7';
21
 
22
  /**
23
  * Email Log Store URL.
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.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
7
- "POT-Creation-Date: 2021-10-13 11:50:37+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.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
7
+ "POT-Creation-Date: 2021-10-13 13:22:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
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.8
7
- Stable tag: 2.4.6
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.6 – (2021-10-13) =
137
  - Fix: Enhance how order and order by works.
138
  - Tweak: Tested upto WordPress 5.8
4
  Requires PHP: 5.6
5
  Requires at least: 4.0
6
  Tested up to: 5.8
7
+ Stable tag: 2.4.7
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.7 – (2021-10-13) =
137
+ - Fix: Fix the typo that was introduced in v2.4.6
138
+
139
  = v2.4.6 – (2021-10-13) =
140
  - Fix: Enhance how order and order by works.
141
  - Tweak: Tested upto WordPress 5.8