Plugin Directory

Changeset 2613593


Ignore:
Timestamp:
10/13/2021 11:52:32 AM (4 years ago)
Author:
sudar
Message:

Release v2.4.6

Location:
email-log/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • email-log/trunk/email-log.php

    r2513674 r2613593  
    66 * Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
    77 * Author: Sudar
    8  * Version: 2.4.5
     8 * Version: 2.4.6
    99 * Author URI: http://sudarmuthu.com/
    1010 * Text Domain: email-log
  • email-log/trunk/include/Core/DB/TableManager.php

    r2335530 r2613593  
    44 * Handle installation and db table creation.
    55 */
     6
    67use EmailLog\Core\Loadie;
    78use EmailLog\Util;
     
    295296
    296297        // 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;
    302318        }
    303319
  • email-log/trunk/include/Core/EmailLog.php

    r2513674 r2613593  
    1818     * @var string
    1919     */
    20     const VERSION = '2.4.5';
     20    const VERSION = '2.4.6';
    2121
    2222    /**
  • email-log/trunk/languages/email-log.pot

    r2513674 r2613593  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Email Log 2.4.5\n"
     5"Project-Id-Version: Email Log 2.4.6\n"
    66"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"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
  • email-log/trunk/readme.txt

    r2513674 r2613593  
    44Requires PHP: 5.6 
    55Requires at least: 4.0 
    6 Tested up to: 5.7 
    7 Stable tag: 2.4.5 
     6Tested up to: 5.8 
     7Stable tag: 2.4.6 
    88
    99Log 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.
     
    133133This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
    134134== 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
    135139
    136140= v2.4.5 – (2021-04-13) =
     
    359363== Upgrade Notice ==
    360364
     365= 2.4.6 =
     366Tested upto WordPress 5.8
     367
    361368= 2.4.5 =
    362369Improved admin performance and reduced network calls.
Note: See TracChangeset for help on using the changeset viewer.