Email Log - Version 2.4.6

Version Description

Tested upto WordPress 5.8

Download this release

Release Info

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

Code changes from version 2.4.5 to 2.4.6

AUTHORS.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ Contributors in the order of first contribution
2
+
3
+ - [Sudar Muthu](https://github.com/sudar)
4
+ - [samuelaguilera](https://github.com/samuelaguilera)
5
+ - [ChuckMac](https://github.com/ChuckMac)
6
+ - [Maria Daniel Deepak](https://github.com/mariadanieldeepak)
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.5
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.6
9
  * Author URI: http://sudarmuthu.com/
10
  * Text Domain: email-log
11
  * Domain Path: languages/
include/Core/DB/TableManager.php CHANGED
@@ -3,6 +3,7 @@
3
  /**
4
  * Handle installation and db table creation.
5
  */
 
6
  use EmailLog\Core\Loadie;
7
  use EmailLog\Util;
8
 
@@ -294,11 +295,26 @@ class TableManager implements Loadie {
294
  }
295
 
296
  // Ordering parameters.
297
- $orderby = ! empty( $request['orderby'] ) ? esc_sql( $request['orderby'] ) : 'sent_date';
298
- $order = ! empty( $request['order'] ) ? esc_sql( $request['order'] ) : 'DESC';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
- if ( ! empty( $orderby ) & ! empty( $order ) ) {
301
- $query_cond .= ' ORDER BY ' . $orderby . ' ' . $order;
302
  }
303
 
304
  // Find total number of items.
3
  /**
4
  * Handle installation and db table creation.
5
  */
6
+
7
  use EmailLog\Core\Loadie;
8
  use EmailLog\Util;
9
 
295
  }
296
 
297
  // Ordering parameters.
298
+ $order_by = 'send_date';
299
+ $order = 'DESC';
300
+
301
+ $allowed_order_by = [
302
+ 'sent_date',
303
+ 'to_email',
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
 
316
+ if ( ! empty( $order_by ) & ! empty( $order ) ) {
317
+ $query_cond .= ' ORDER BY ' . $order_by . ' ' . $order;
318
  }
319
 
320
  // Find total number of items.
include/Core/EmailLog.php CHANGED
@@ -17,7 +17,7 @@ class EmailLog {
17
  *
18
  * @var string
19
  */
20
- const VERSION = '2.4.5';
21
 
22
  /**
23
  * Email Log Store URL.
17
  *
18
  * @var string
19
  */
20
+ const VERSION = '2.4.6';
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.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"
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"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: sudar
3
  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.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,6 +133,10 @@ 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.5 – (2021-04-13) =
137
  - Fix: Don't override WordPress plugin update in base plugin.
138
 
@@ -358,6 +362,9 @@ This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/
358
 
359
  == Upgrade Notice ==
360
 
 
 
 
361
  = 2.4.5 =
362
  Improved admin performance and reduced network calls.
363
 
3
  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
  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
139
+
140
  = v2.4.5 – (2021-04-13) =
141
  - Fix: Don't override WordPress plugin update in base plugin.
142
 
362
 
363
  == Upgrade Notice ==
364
 
365
+ = 2.4.6 =
366
+ Tested upto WordPress 5.8
367
+
368
  = 2.4.5 =
369
  Improved admin performance and reduced network calls.
370