Changeset 2396460
- Timestamp:
- 10/09/2020 06:20:57 AM (5 years ago)
- Location:
- email-log/trunk
- Files:
-
- 7 edited
-
email-log.php (modified) (1 diff)
-
include/Core/EmailLog.php (modified) (1 diff)
-
include/Core/Request/NonceChecker.php (modified) (1 diff)
-
include/Core/UI/ListTable/LogListTable.php (modified) (2 diffs)
-
include/Util/helper.php (modified) (1 diff)
-
languages/email-log.pot (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
email-log/trunk/email-log.php
r2336721 r2396460 6 6 * Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me 7 7 * Author: Sudar 8 * Version: 2.4. 28 * Version: 2.4.3 9 9 * Author URI: http://sudarmuthu.com/ 10 10 * Text Domain: email-log -
email-log/trunk/include/Core/EmailLog.php
r2336721 r2396460 18 18 * @var string 19 19 */ 20 const VERSION = '2.4. 2';20 const VERSION = '2.4.3'; 21 21 22 22 /** -
email-log/trunk/include/Core/Request/NonceChecker.php
r2253545 r2396460 59 59 } 60 60 61 if ( strpos( $action, 'el-log-list-' ) !== 0 ) {61 if ( strpos( $action, 'el-log-list-' ) !== 0 && strpos( $action, 'el-cron-' ) !== 0 ) { 62 62 return; 63 63 } 64 64 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 } 67 73 } 68 74 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 } 71 83 } 72 84 } -
email-log/trunk/include/Core/UI/ListTable/LogListTable.php
r2335530 r2396460 2 2 3 3 use EmailLog\Util; 4 use function EmailLog\Util\get_display_format_for_log_time; 4 5 5 6 if ( ! class_exists( 'WP_List_Table' ) ) { … … 142 143 protected function column_sent_date( $item ) { 143 144 $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 ), 145 151 $item->sent_date 146 152 ); -
email-log/trunk/include/Util/helper.php
r2335530 r2396460 183 183 function get_user_defined_date_time_format() { 184 184 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 */ 194 function 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 ); 185 210 } 186 211 -
email-log/trunk/languages/email-log.pot
r2336721 r2396460 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Email Log 2.4. 2\n"5 "Project-Id-Version: Email Log 2.4.3\n" 6 6 "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" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 196 196 msgstr "" 197 197 198 #: include/Core/Request/LogListAction.php:64 include/Util/helper.php:3 23198 #: include/Core/Request/LogListAction.php:64 include/Util/helper.php:348 199 199 msgid "Sent at" 200 200 msgstr "" 201 201 202 #: include/Core/Request/LogListAction.php:68 include/Util/helper.php:3 19202 #: include/Core/Request/LogListAction.php:68 include/Util/helper.php:344 203 203 msgid "To" 204 204 msgstr "" 205 205 206 #: include/Core/Request/LogListAction.php:72 include/Util/helper.php:3 20206 #: include/Core/Request/LogListAction.php:72 include/Util/helper.php:345 207 207 msgid "Subject" 208 208 msgstr "" … … 278 278 msgstr "" 279 279 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 282 msgid "%1$s @ %2$s" 283 msgstr "" 284 285 #: include/Core/UI/ListTable/LogListTable.php:168 285 286 msgid "Email Content" 286 287 msgstr "" 287 288 288 #: include/Core/UI/ListTable/LogListTable.php:16 3289 #: include/Core/UI/ListTable/LogListTable.php:169 289 290 msgid "View Content" 290 291 msgstr "" 291 292 292 #: include/Core/UI/ListTable/LogListTable.php:1 77293 #: include/Core/UI/ListTable/LogListTable.php:29 2293 #: include/Core/UI/ListTable/LogListTable.php:183 294 #: include/Core/UI/ListTable/LogListTable.php:298 294 295 msgid "Delete" 295 296 msgstr "" 296 297 297 #: include/Core/UI/ListTable/LogListTable.php:29 3298 #: include/Core/UI/ListTable/LogListTable.php:299 298 299 msgid "Delete All Logs" 299 300 msgstr "" 300 301 301 #: include/Core/UI/ListTable/LogListTable.php:3 26302 #: include/Core/UI/ListTable/LogListTable.php:332 302 303 msgid "Your email log is empty" 303 304 msgstr "" 304 305 305 #: include/Core/UI/ListTable/LogListTable.php:35 3306 #: include/Core/UI/ListTable/LogListTable.php:359 306 307 msgid "Search by date" 307 308 msgstr "" 308 309 309 #: include/Core/UI/ListTable/LogListTable.php:3 54310 #: include/Core/UI/ListTable/LogListTable.php:360 310 311 msgid "Search by term" 311 312 msgstr "" … … 505 506 msgstr[1] "" 506 507 507 #: include/Util/helper.php:318 508 #: include/Util/helper.php:199 509 #. translators: Email Log time display format, see http:php.net/date 510 msgid "g:i:s a" 511 msgstr "" 512 513 #: include/Util/helper.php:343 508 514 msgid "ID" 509 515 msgstr "" 510 516 511 #: include/Util/helper.php:3 21517 #: include/Util/helper.php:346 512 518 msgid "Message" 513 519 msgstr "" 514 520 515 #: include/Util/helper.php:3 22521 #: include/Util/helper.php:347 516 522 msgid "Attachment" 517 523 msgstr "" 518 524 519 #: include/Util/helper.php:3 24525 #: include/Util/helper.php:349 520 526 msgid "From" 521 527 msgstr "" 522 528 523 #: include/Util/helper.php:3 25529 #: include/Util/helper.php:350 524 530 msgid "CC" 525 531 msgstr "" 526 532 527 #: include/Util/helper.php:3 26533 #: include/Util/helper.php:351 528 534 msgid "BCC" 529 535 msgstr "" 530 536 531 #: include/Util/helper.php:3 27537 #: include/Util/helper.php:352 532 538 msgid "Reply To" 533 539 msgstr "" 534 540 535 #: include/Util/helper.php:3 28541 #: include/Util/helper.php:353 536 542 msgid "IP Address" 537 543 msgstr "" 538 544 539 #: include/Util/helper.php:3 29545 #: include/Util/helper.php:354 540 546 msgid "Sent Status" 541 547 msgstr "" -
email-log/trunk/readme.txt
r2362424 r2396460 5 5 Requires at least: 4.0 6 6 Tested up to: 5.5 7 Stable tag: 2.4. 28 9 Log and view all outgoing emails from WordPress. Works with WordPress Multisite as well.7 Stable tag: 2.4.3 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 10 11 11 == Description == 12 12 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 .13 Email Log is a WordPress plugin that allows you to easily log and view all emails that were 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, especially on ecommerce sites that are setup with either WooCommerce or Easy Digital Downloads. 16 16 17 17 You 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). 18 18 19 Works with WordPress Multisite as well. 19 20 ### Viewing logged emails 20 21 … … 132 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. 133 134 == 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. 134 140 135 141 = v2.4.2 – (2020-07-07) =
Note: See TracChangeset
for help on using the changeset viewer.