Changeset 2613593
- Timestamp:
- 10/13/2021 11:52:32 AM (4 years ago)
- Location:
- email-log/trunk
- Files:
-
- 1 added
- 5 edited
-
AUTHORS.md (added)
-
email-log.php (modified) (1 diff)
-
include/Core/DB/TableManager.php (modified) (2 diffs)
-
include/Core/EmailLog.php (modified) (1 diff)
-
languages/email-log.pot (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
email-log/trunk/email-log.php
r2513674 r2613593 6 6 * Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me 7 7 * Author: Sudar 8 * Version: 2.4. 58 * Version: 2.4.6 9 9 * Author URI: http://sudarmuthu.com/ 10 10 * Text Domain: email-log -
email-log/trunk/include/Core/DB/TableManager.php
r2335530 r2613593 4 4 * Handle installation and db table creation. 5 5 */ 6 6 7 use EmailLog\Core\Loadie; 7 8 use EmailLog\Util; … … 295 296 296 297 // 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; 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; 302 318 } 303 319 -
email-log/trunk/include/Core/EmailLog.php
r2513674 r2613593 18 18 * @var string 19 19 */ 20 const VERSION = '2.4. 5';20 const VERSION = '2.4.6'; 21 21 22 22 /** -
email-log/trunk/languages/email-log.pot
r2513674 r2613593 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Email Log 2.4. 5\n"5 "Project-Id-Version: Email Log 2.4.6\n" 6 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"7 "POT-Creation-Date: 2021-10-13 11:50:37+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" -
email-log/trunk/readme.txt
r2513674 r2613593 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Tested up to: 5. 77 Stable tag: 2.4. 56 Tested up to: 5.8 7 Stable tag: 2.4.6 8 8 9 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. … … 133 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 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 135 139 136 140 = v2.4.5 – (2021-04-13) = … … 359 363 == Upgrade Notice == 360 364 365 = 2.4.6 = 366 Tested upto WordPress 5.8 367 361 368 = 2.4.5 = 362 369 Improved admin performance and reduced network calls.
Note: See TracChangeset
for help on using the changeset viewer.