Version Description
Fixed issue with "Delete All Logs" action that was introduced in v1.8
Download this release
Release Info
Developer | sudar |
Plugin | Email Log |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.8.1
- email-log.php +2 -2
- include/class-email-log-list-table.php +5 -6
- languages/email-log.pot +4 -4
- readme.txt +7 -1
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: 1.8
|
9 |
* Author URI: http://sudarmuthu.com/
|
10 |
* Text Domain: email-log
|
11 |
* Domain Path: languages/
|
@@ -47,7 +47,7 @@ class EmailLog {
|
|
47 |
|
48 |
private $admin_screen;
|
49 |
|
50 |
-
const VERSION = '1.8';
|
51 |
const FILTER_NAME = 'wp_mail_log';
|
52 |
const PAGE_SLUG = 'email-log';
|
53 |
const DELETE_LOG_NONCE_FIELD = 'sm-delete-email-log-nonce';
|
5 |
* Description: Logs every email sent through WordPress
|
6 |
* Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
7 |
* Author: Sudar
|
8 |
+
* Version: 1.8.1
|
9 |
* Author URI: http://sudarmuthu.com/
|
10 |
* Text Domain: email-log
|
11 |
* Domain Path: languages/
|
47 |
|
48 |
private $admin_screen;
|
49 |
|
50 |
+
const VERSION = '1.8.1';
|
51 |
const FILTER_NAME = 'wp_mail_log';
|
52 |
const PAGE_SLUG = 'email-log';
|
53 |
const DELETE_LOG_NONCE_FIELD = 'sm-delete-email-log-nonce';
|
include/class-email-log-list-table.php
CHANGED
@@ -234,8 +234,8 @@ class Email_Log_List_Table extends WP_List_Table {
|
|
234 |
if ( 'delete' === $this->current_action() ) {
|
235 |
// delete a list of logs by id
|
236 |
|
237 |
-
$
|
238 |
-
if ( wp_verify_nonce( $
|
239 |
|
240 |
$ids = $_GET[ $this->_args['singular'] ];
|
241 |
|
@@ -257,11 +257,10 @@ class Email_Log_List_Table extends WP_List_Table {
|
|
257 |
}
|
258 |
} else if ( 'delete-all' === $this->current_action() ) {
|
259 |
// delete all logs
|
260 |
-
|
261 |
-
|
262 |
-
if ( wp_verify_nonce( $nouce, EmailLog::DELETE_LOG_ACTION ) ) {
|
263 |
$table_name = $wpdb->prefix . EmailLog::TABLE_NAME;
|
264 |
-
$EmailLog->logs_deleted = $wpdb->query(
|
265 |
} else {
|
266 |
wp_die( 'Cheating, Huh? ' );
|
267 |
}
|
234 |
if ( 'delete' === $this->current_action() ) {
|
235 |
// delete a list of logs by id
|
236 |
|
237 |
+
$nonce = $_REQUEST[ EmailLog::DELETE_LOG_NONCE_FIELD ];
|
238 |
+
if ( wp_verify_nonce( $nonce, EmailLog::DELETE_LOG_ACTION ) ) {
|
239 |
|
240 |
$ids = $_GET[ $this->_args['singular'] ];
|
241 |
|
257 |
}
|
258 |
} else if ( 'delete-all' === $this->current_action() ) {
|
259 |
// delete all logs
|
260 |
+
$nonce = $_REQUEST[ EmailLog::DELETE_LOG_NONCE_FIELD ];
|
261 |
+
if ( wp_verify_nonce( $nonce, EmailLog::DELETE_LOG_ACTION ) ) {
|
|
|
262 |
$table_name = $wpdb->prefix . EmailLog::TABLE_NAME;
|
263 |
+
$EmailLog->logs_deleted = $wpdb->query( "DELETE FROM $table_name" );
|
264 |
} else {
|
265 |
wp_die( 'Cheating, Huh? ' );
|
266 |
}
|
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 1.8\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
|
7 |
-
"POT-Creation-Date: 2015-12-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -16,7 +16,7 @@ msgstr ""
|
|
16 |
msgid "Buy Addons"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#. #-#-#-#-# email-log.pot (Email Log 1.8) #-#-#-#-#
|
20 |
#. Plugin Name of the plugin/theme
|
21 |
#: email-log.php:117
|
22 |
msgid "Email Log"
|
@@ -173,7 +173,7 @@ msgstr ""
|
|
173 |
msgid "Delete All Logs"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: include/class-email-log-list-table.php:
|
177 |
msgid "Your email log is empty"
|
178 |
msgstr ""
|
179 |
|
2 |
# This file is distributed under the same license as the Email Log package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Email Log 1.8.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
|
7 |
+
"POT-Creation-Date: 2015-12-27 07:15:10+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
msgid "Buy Addons"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#. #-#-#-#-# email-log.pot (Email Log 1.8.1) #-#-#-#-#
|
20 |
#. Plugin Name of the plugin/theme
|
21 |
#: email-log.php:117
|
22 |
msgid "Email Log"
|
173 |
msgid "Delete All Logs"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: include/class-email-log-list-table.php:329
|
177 |
msgid "Your email log is empty"
|
178 |
msgstr ""
|
179 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: sudar
|
|
3 |
Tags: email, log, multisite
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 1.8
|
7 |
|
8 |
Logs every email sent through WordPress. Works with WordPress Multisite as well
|
9 |
|
@@ -121,6 +121,9 @@ wpmandrill plugin has a bug that prevents this plugin from logging the content o
|
|
121 |
This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
124 |
= v1.8 (2015-12-26) - (Dev time: 5 hour) =
|
125 |
- New: Added filters and actions for addons
|
126 |
- New: Added Resend Email Addon
|
@@ -237,6 +240,9 @@ This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/
|
|
237 |
|
238 |
== Upgrade Notice ==
|
239 |
|
|
|
|
|
|
|
240 |
= 1.8 =
|
241 |
Added support for resending emails through addon
|
242 |
|
3 |
Tags: email, log, multisite
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 1.8.1
|
7 |
|
8 |
Logs every email sent through WordPress. Works with WordPress Multisite as well
|
9 |
|
121 |
This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= v1.8.1 (2015-12-27) - (Dev time: 0.5 hour) =
|
125 |
+
- Fix: Fixed the "Delete All Logs" issue that was introduced in v1.8
|
126 |
+
|
127 |
= v1.8 (2015-12-26) - (Dev time: 5 hour) =
|
128 |
- New: Added filters and actions for addons
|
129 |
- New: Added Resend Email Addon
|
240 |
|
241 |
== Upgrade Notice ==
|
242 |
|
243 |
+
= 1.8.1 =
|
244 |
+
Fixed issue with "Delete All Logs" action that was introduced in v1.8
|
245 |
+
|
246 |
= 1.8 =
|
247 |
Added support for resending emails through addon
|
248 |
|