Plugin Directory

Changeset 2396460


Ignore:
Timestamp:
10/09/2020 06:20:57 AM (5 years ago)
Author:
sudar
Message:

Release v2.4.3

Location:
email-log/trunk
Files:
7 edited

Legend:

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

    r2336721 r2396460  
    66 * Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
    77 * Author: Sudar
    8  * Version: 2.4.2
     8 * Version: 2.4.3
    99 * Author URI: http://sudarmuthu.com/
    1010 * Text Domain: email-log
  • email-log/trunk/include/Core/EmailLog.php

    r2336721 r2396460  
    1818     * @var string
    1919     */
    20     const VERSION = '2.4.2';
     20    const VERSION = '2.4.3';
    2121
    2222    /**
  • email-log/trunk/include/Core/Request/NonceChecker.php

    r2253545 r2396460  
    5959            }
    6060
    61             if ( strpos( $action, 'el-log-list-' ) !== 0 ) {
     61            if ( strpos( $action, 'el-log-list-' ) !== 0 && strpos( $action, 'el-cron-' ) !== 0 ) {
    6262                return;
    6363            }
    6464
    65             if ( ! isset( $_REQUEST[ LogListPage::LOG_LIST_ACTION_NONCE_FIELD ] ) ) {
    66                 return;
     65            if ( strpos( $action, 'el-log-list-' ) === 0 ) {
     66                if ( ! isset( $_REQUEST[ LogListPage::LOG_LIST_ACTION_NONCE_FIELD ] ) ) {
     67                    return;
     68                }
     69
     70                if ( ! wp_verify_nonce( $_REQUEST[ LogListPage::LOG_LIST_ACTION_NONCE_FIELD ], LogListPage::LOG_LIST_ACTION_NONCE ) ) {
     71                    return;
     72                }
    6773            }
    6874
    69             if ( ! wp_verify_nonce( $_REQUEST[ LogListPage::LOG_LIST_ACTION_NONCE_FIELD ], LogListPage::LOG_LIST_ACTION_NONCE ) ) {
    70                 return;
     75            if ( strpos( $action, 'el-cron-' ) === 0 ) {
     76                if ( ! isset( $_REQUEST[ $action . '-nonce-field' ] ) ) {
     77                    return;
     78                }
     79
     80                if ( ! wp_verify_nonce( $_REQUEST[ $action . '-nonce-field' ], $action . '-nonce' ) ) {
     81                    return;
     82                }
    7183            }
    7284        }
  • email-log/trunk/include/Core/UI/ListTable/LogListTable.php

    r2335530 r2396460  
    22
    33use EmailLog\Util;
     4use function EmailLog\Util\get_display_format_for_log_time;
    45
    56if ( ! class_exists( 'WP_List_Table' ) ) {
     
    142143    protected function column_sent_date( $item ) {
    143144        $email_date = mysql2date(
    144             sprintf( __( '%s @ %s', 'email-log' ), get_option( 'date_format', 'F j, Y' ), 'g:i:s a' ),
     145            sprintf(
     146                /* translators: 1 Date of the log, 2 Time of the log */
     147                __( '%1$s @ %2$s', 'email-log' ),
     148                get_option( 'date_format', 'F j, Y' ),
     149                get_display_format_for_log_time()
     150            ),
    145151            $item->sent_date
    146152        );
  • email-log/trunk/include/Util/helper.php

    r2335530 r2396460  
    183183function get_user_defined_date_time_format() {
    184184    return sprintf( '%1$s %2$s', get_option( 'date_format', 'Y-m-d' ), get_option( 'time_format', 'g:i a' ) );
     185}
     186
     187/**
     188 * Get the display format for displaying the email log time.
     189 *
     190 * @since 2.4.3
     191 *
     192 * @return string Email log time display format.
     193 */
     194function get_display_format_for_log_time() {
     195    $default_time_format = get_option( 'time_format', 'g:i:s a' );
     196
     197    if ( false === stripos( $default_time_format, 's' ) ) {
     198        /* translators: Email Log time display format, see http://php.net/date */
     199        $default_time_format = __( 'g:i:s a', 'email-log' );
     200    }
     201
     202    /**
     203     * Filter the time format string for displaying log time.
     204     *
     205     * @since 2.4.3
     206     *
     207     * @param string $default_time_format Default time format.
     208     */
     209    return apply_filters( 'el_log_time_display_format', $default_time_format );
    185210}
    186211
  • email-log/trunk/languages/email-log.pot

    r2336721 r2396460  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Email Log 2.4.2\n"
     5"Project-Id-Version: Email Log 2.4.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
    7 "POT-Creation-Date: 2020-07-07 13:45:01+00:00\n"
     7"POT-Creation-Date: 2020-10-09 06:19:12+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    196196msgstr ""
    197197
    198 #: include/Core/Request/LogListAction.php:64 include/Util/helper.php:323
     198#: include/Core/Request/LogListAction.php:64 include/Util/helper.php:348
    199199msgid "Sent at"
    200200msgstr ""
    201201
    202 #: include/Core/Request/LogListAction.php:68 include/Util/helper.php:319
     202#: include/Core/Request/LogListAction.php:68 include/Util/helper.php:344
    203203msgid "To"
    204204msgstr ""
    205205
    206 #: include/Core/Request/LogListAction.php:72 include/Util/helper.php:320
     206#: include/Core/Request/LogListAction.php:72 include/Util/helper.php:345
    207207msgid "Subject"
    208208msgstr ""
     
    278278msgstr ""
    279279
    280 #: include/Core/UI/ListTable/LogListTable.php:144
    281 msgid "%s @ %s"
    282 msgstr ""
    283 
    284 #: include/Core/UI/ListTable/LogListTable.php:162
     280#: include/Core/UI/ListTable/LogListTable.php:147
     281#. translators: 1 Date of the log, 2 Time of the log
     282msgid "%1$s @ %2$s"
     283msgstr ""
     284
     285#: include/Core/UI/ListTable/LogListTable.php:168
    285286msgid "Email Content"
    286287msgstr ""
    287288
    288 #: include/Core/UI/ListTable/LogListTable.php:163
     289#: include/Core/UI/ListTable/LogListTable.php:169
    289290msgid "View Content"
    290291msgstr ""
    291292
    292 #: include/Core/UI/ListTable/LogListTable.php:177
    293 #: include/Core/UI/ListTable/LogListTable.php:292
     293#: include/Core/UI/ListTable/LogListTable.php:183
     294#: include/Core/UI/ListTable/LogListTable.php:298
    294295msgid "Delete"
    295296msgstr ""
    296297
    297 #: include/Core/UI/ListTable/LogListTable.php:293
     298#: include/Core/UI/ListTable/LogListTable.php:299
    298299msgid "Delete All Logs"
    299300msgstr ""
    300301
    301 #: include/Core/UI/ListTable/LogListTable.php:326
     302#: include/Core/UI/ListTable/LogListTable.php:332
    302303msgid "Your email log is empty"
    303304msgstr ""
    304305
    305 #: include/Core/UI/ListTable/LogListTable.php:353
     306#: include/Core/UI/ListTable/LogListTable.php:359
    306307msgid "Search by date"
    307308msgstr ""
    308309
    309 #: include/Core/UI/ListTable/LogListTable.php:354
     310#: include/Core/UI/ListTable/LogListTable.php:360
    310311msgid "Search by term"
    311312msgstr ""
     
    505506msgstr[1] ""
    506507
    507 #: include/Util/helper.php:318
     508#: include/Util/helper.php:199
     509#. translators: Email Log time display format, see http:php.net/date
     510msgid "g:i:s a"
     511msgstr ""
     512
     513#: include/Util/helper.php:343
    508514msgid "ID"
    509515msgstr ""
    510516
    511 #: include/Util/helper.php:321
     517#: include/Util/helper.php:346
    512518msgid "Message"
    513519msgstr ""
    514520
    515 #: include/Util/helper.php:322
     521#: include/Util/helper.php:347
    516522msgid "Attachment"
    517523msgstr ""
    518524
    519 #: include/Util/helper.php:324
     525#: include/Util/helper.php:349
    520526msgid "From"
    521527msgstr ""
    522528
    523 #: include/Util/helper.php:325
     529#: include/Util/helper.php:350
    524530msgid "CC"
    525531msgstr ""
    526532
    527 #: include/Util/helper.php:326
     533#: include/Util/helper.php:351
    528534msgid "BCC"
    529535msgstr ""
    530536
    531 #: include/Util/helper.php:327
     537#: include/Util/helper.php:352
    532538msgid "Reply To"
    533539msgstr ""
    534540
    535 #: include/Util/helper.php:328
     541#: include/Util/helper.php:353
    536542msgid "IP Address"
    537543msgstr ""
    538544
    539 #: include/Util/helper.php:329
     545#: include/Util/helper.php:354
    540546msgid "Sent Status"
    541547msgstr ""
  • email-log/trunk/readme.txt

    r2362424 r2396460  
    55Requires at least: 4.0 
    66Tested up to: 5.5 
    7 Stable tag: 2.4.2 
    8 
    9 Log and view all outgoing emails from WordPress. Works with WordPress Multisite as well.
     7Stable tag: 2.4.3 
     8
     9Log 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.
    1010
    1111== Description ==
    1212
    13 Email Log is a WordPress plugin that allows you to easily log and view all emails sent from WordPress.
    14 
    15 This would be very useful for debugging email related problems in your WordPress site or for storing sent emails for auditing purposes.
     13Email Log is a WordPress plugin that allows you to easily log and view all emails that were sent from WordPress.
     14
     15This would be very useful for debugging email related problems in your WordPress site or for storing sent emails for auditing purposes, especially on ecommerce sites that are setup with either WooCommerce or Easy Digital Downloads.
    1616
    1717You can perform advanced actions like re-sending email, automatically forwarding emails or export logs with our [premium add-ons](https://wpemaillog.com/store/?utm_campaign=Upsell&utm_medium=wporg&utm_source=readme&utm_content=store).
    1818
     19Works with WordPress Multisite as well.
    1920### Viewing logged emails
    2021
     
    132133This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
    133134== Changelog ==
     135
     136= v2.4.3 – (2020-10-09) =
     137- New: Added `el_log_time_display_format` filter to change the email log display time.
     138- New: Provide an option for translators to override the email log display time.
     139- Tweak: Enhanced the nonce check.
    134140
    135141= v2.4.2 – (2020-07-07) =
Note: See TracChangeset for help on using the changeset viewer.