Email Log - Version 1.5.4

Version Description

Fixed issue in searching for non-english characters

=

Download this release

Release Info

Developer sudar
Plugin Icon 128x128 Email Log
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3 to 1.5.4

email-log.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://sudarmuthu.com/wordpress/email-log
5
  Description: Logs every email sent through WordPress. Compatible with WPMU too.
6
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  Author: Sudar
8
- Version: 1.5.3
9
  Author URI: http://sudarmuthu.com/
10
  Text Domain: email-log
11
  Domain Path: languages/
@@ -53,6 +53,9 @@ Domain Path: languages/
53
  - Add support for "More Fields" addon
54
  2013-09-14 - v1.5.3 - (Dev time: 0.5 hours)
55
  - Fix issue in bulk deleting logs
 
 
 
56
  */
57
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
58
 
5
  Description: Logs every email sent through WordPress. Compatible with WPMU too.
6
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  Author: Sudar
8
+ Version: 1.5.4
9
  Author URI: http://sudarmuthu.com/
10
  Text Domain: email-log
11
  Domain Path: languages/
53
  - Add support for "More Fields" addon
54
  2013-09-14 - v1.5.3 - (Dev time: 0.5 hours)
55
  - Fix issue in bulk deleting logs
56
+ 2013-09-21 - v1.5.4 - (Dev time: 0.5 hours)
57
+ - Fix issue in searching non-english characters
58
+ - Add addon screenshots
59
  */
60
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
61
 
include/class-email-log-list-table.php CHANGED
@@ -268,50 +268,29 @@ class Email_Log_List_Table extends WP_List_Table {
268
  }
269
  }
270
 
271
- /** ************************************************************************
272
- * REQUIRED! This is where you prepare your data for display. This method will
273
- * usually be used to query the database, sort and filter the data, and generally
274
- * get it ready to be displayed. At a minimum, we should set $this->items and
275
- * $this->set_pagination_args(), although the following properties and methods
276
- * are frequently interacted with here...
277
- *
278
- * @global WPDB $wpdb
279
- * @uses $this->_column_headers
280
- * @uses $this->items
281
- * @uses $this->get_columns()
282
- * @uses $this->get_sortable_columns()
283
- * @uses $this->get_pagenum()
284
- * @uses $this->set_pagination_args()
285
- **************************************************************************/
286
  function prepare_items( $per_page ) {
287
  global $wpdb;
288
  global $EmailLog;
289
 
290
  $this->_column_headers = $this->get_column_info();
291
 
292
- /**
293
- * Optional. You can handle your bulk actions however you see fit. In this
294
- * case, we'll handle them within our package just to keep things clean.
295
- */
296
  $this->process_bulk_action();
297
 
298
- /**
299
- * REQUIRED for pagination. Let's figure out what page the user is currently
300
- * looking at. We'll need this later, so you should always include it in
301
- * your own package classes.
302
- */
303
  $current_page = $this->get_pagenum();
304
 
305
  $query = "SELECT * FROM " . $EmailLog->table_name;
306
 
307
  if ( isset( $_GET['s'] ) ) {
308
- $search_term = esc_sql( $_GET['s'] );
309
-
310
  $query .= " WHERE to_email LIKE '%$search_term%' OR subject LIKE '%$search_term%' ";
311
  }
312
 
313
- /* -- Ordering parameters -- */
314
- //Parameters that are going to be used to order the result
315
  $orderby = !empty( $_GET["orderby"] ) ? esc_sql( $_GET["orderby"] ) : 'sent_date';
316
  $order = !empty( $_GET["order"] ) ? esc_sql( $_GET["order"] ) : 'DESC';
317
 
@@ -319,28 +298,19 @@ class Email_Log_List_Table extends WP_List_Table {
319
  $query .= ' ORDER BY ' . $orderby . ' ' . $order;
320
  }
321
 
322
- /* -- Pagination parameters -- */
323
  $total_items = $wpdb->query( $query ); //return the total number of affected rows
324
 
325
- //Which page is this?
326
- $current_page = !empty( $_GET["paged"] ) ? esc_sql( $_GET["paged"] ) : '';
327
- //Page Number
328
- if( empty( $current_page ) || !is_numeric( $current_page ) || $current_page <= 0 ) {
329
- $current_page = 1;
330
- }
331
-
332
  //adjust the query to take pagination into account
333
  if( !empty( $current_page ) && !empty( $per_page ) ) {
334
  $offset = ($current_page-1) * $per_page;
335
  $query .= ' LIMIT ' . (int)$offset . ',' . (int)$per_page;
336
  }
337
 
338
- /* -- Fetch the items -- */
339
  $this->items = $wpdb->get_results( $query );
340
 
341
- /**
342
- * register our pagination options & calculations.
343
- */
344
  $this->set_pagination_args( array(
345
  'total_items' => $total_items,
346
  'per_page' => $per_page,
268
  }
269
  }
270
 
271
+ /**
272
+ * Prepare data for display.
273
+ */
 
 
 
 
 
 
 
 
 
 
 
 
274
  function prepare_items( $per_page ) {
275
  global $wpdb;
276
  global $EmailLog;
277
 
278
  $this->_column_headers = $this->get_column_info();
279
 
280
+ // Handle bulk actions
 
 
 
281
  $this->process_bulk_action();
282
 
283
+ // get current page number
 
 
 
 
284
  $current_page = $this->get_pagenum();
285
 
286
  $query = "SELECT * FROM " . $EmailLog->table_name;
287
 
288
  if ( isset( $_GET['s'] ) ) {
289
+ $search_term = trim( esc_sql( $_GET['s'] ) );
 
290
  $query .= " WHERE to_email LIKE '%$search_term%' OR subject LIKE '%$search_term%' ";
291
  }
292
 
293
+ // Ordering parameters
 
294
  $orderby = !empty( $_GET["orderby"] ) ? esc_sql( $_GET["orderby"] ) : 'sent_date';
295
  $order = !empty( $_GET["order"] ) ? esc_sql( $_GET["order"] ) : 'DESC';
296
 
298
  $query .= ' ORDER BY ' . $orderby . ' ' . $order;
299
  }
300
 
301
+ // Pagination parameters
302
  $total_items = $wpdb->query( $query ); //return the total number of affected rows
303
 
 
 
 
 
 
 
 
304
  //adjust the query to take pagination into account
305
  if( !empty( $current_page ) && !empty( $per_page ) ) {
306
  $offset = ($current_page-1) * $per_page;
307
  $query .= ' LIMIT ' . (int)$offset . ',' . (int)$per_page;
308
  }
309
 
310
+ // Fetch the items
311
  $this->items = $wpdb->get_results( $query );
312
 
313
+ // register pagination options & calculations.
 
 
314
  $this->set_pagination_args( array(
315
  'total_items' => $total_items,
316
  'per_page' => $per_page,
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.5.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/email-log\n"
7
- "POT-Creation-Date: 2013-09-14 11:04:37+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,77 +12,77 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: email-log.php:127
16
  msgid "Buy Addons"
17
  msgstr ""
18
 
19
- #. #-#-#-#-# email-log.pot (Email Log 1.5.3) #-#-#-#-#
20
  #. Plugin Name of the plugin/theme
21
- #: email-log.php:137
22
  msgid "Email Log"
23
  msgstr ""
24
 
25
- #: email-log.php:151
26
  msgid "Email Logs"
27
  msgstr ""
28
 
29
- #: email-log.php:157
30
  msgid "1 email log deleted."
31
  msgid_plural "%s email logs deleted"
32
  msgstr[0] ""
33
  msgstr[1] ""
34
 
35
- #: email-log.php:159
36
  msgid "There was some problem in deleting the email logs"
37
  msgstr ""
38
 
39
- #: email-log.php:167
40
  msgid "Search Logs"
41
  msgstr ""
42
 
43
- #: email-log.php:200
44
  msgid "About Plugin"
45
  msgstr ""
46
 
47
- #: email-log.php:202
48
  msgid ""
49
  "Email Log WordPress Plugin, allows you to log all emails that are sent "
50
  "through WordPress."
51
  msgstr ""
52
 
53
- #: email-log.php:209
54
  msgid "More information"
55
  msgstr ""
56
 
57
- #: email-log.php:210
58
  msgid "Plugin Homepage/support"
59
  msgstr ""
60
 
61
- #: email-log.php:211
62
  msgid "Plugin author's blog"
63
  msgstr ""
64
 
65
- #: email-log.php:212
66
  msgid "Other Plugin's by Author"
67
  msgstr ""
68
 
69
- #: email-log.php:219
70
  msgid "Entries per page"
71
  msgstr ""
72
 
73
- #: email-log.php:268
74
  msgid "Log"
75
  msgstr ""
76
 
77
- #: email-log.php:278
78
  msgid "plugin"
79
  msgstr ""
80
 
81
- #: email-log.php:278
82
  msgid "Version"
83
  msgstr ""
84
 
85
- #: email-log.php:278
86
  msgid "by"
87
  msgstr ""
88
 
@@ -150,7 +150,7 @@ msgstr ""
150
  msgid "%s @ %s"
151
  msgstr ""
152
 
153
- #: include/class-email-log-list-table.php:355
154
  msgid "Your email log is empty"
155
  msgstr ""
156
 
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.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/email-log\n"
7
+ "POT-Creation-Date: 2013-09-21 07:16:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: email-log.php:130
16
  msgid "Buy Addons"
17
  msgstr ""
18
 
19
+ #. #-#-#-#-# email-log.pot (Email Log 1.5.4) #-#-#-#-#
20
  #. Plugin Name of the plugin/theme
21
+ #: email-log.php:140
22
  msgid "Email Log"
23
  msgstr ""
24
 
25
+ #: email-log.php:154
26
  msgid "Email Logs"
27
  msgstr ""
28
 
29
+ #: email-log.php:160
30
  msgid "1 email log deleted."
31
  msgid_plural "%s email logs deleted"
32
  msgstr[0] ""
33
  msgstr[1] ""
34
 
35
+ #: email-log.php:162
36
  msgid "There was some problem in deleting the email logs"
37
  msgstr ""
38
 
39
+ #: email-log.php:170
40
  msgid "Search Logs"
41
  msgstr ""
42
 
43
+ #: email-log.php:203
44
  msgid "About Plugin"
45
  msgstr ""
46
 
47
+ #: email-log.php:205
48
  msgid ""
49
  "Email Log WordPress Plugin, allows you to log all emails that are sent "
50
  "through WordPress."
51
  msgstr ""
52
 
53
+ #: email-log.php:212
54
  msgid "More information"
55
  msgstr ""
56
 
57
+ #: email-log.php:213
58
  msgid "Plugin Homepage/support"
59
  msgstr ""
60
 
61
+ #: email-log.php:214
62
  msgid "Plugin author's blog"
63
  msgstr ""
64
 
65
+ #: email-log.php:215
66
  msgid "Other Plugin's by Author"
67
  msgstr ""
68
 
69
+ #: email-log.php:222
70
  msgid "Entries per page"
71
  msgstr ""
72
 
73
+ #: email-log.php:271
74
  msgid "Log"
75
  msgstr ""
76
 
77
+ #: email-log.php:281
78
  msgid "plugin"
79
  msgstr ""
80
 
81
+ #: email-log.php:281
82
  msgid "Version"
83
  msgstr ""
84
 
85
+ #: email-log.php:281
86
  msgid "by"
87
  msgstr ""
88
 
150
  msgid "%s @ %s"
151
  msgstr ""
152
 
153
+ #: include/class-email-log-list-table.php:325
154
  msgid "Your email log is empty"
155
  msgstr ""
156
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sudar
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 3.3
5
  Tested up to: 3.6.1
6
- Stable tag: 1.5.3
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
@@ -104,7 +104,13 @@ Extract the zip file and drop the contents in the wp-content/plugins/ directory
104
 
105
  1. The above screenshot shows how the logged emails will be displayed by the Plugin
106
 
107
- 2. This screenshot shows how you can configure the email display screen. You can choose the fields and the number of emails per page.
 
 
 
 
 
 
108
 
109
  == Changelog ==
110
 
@@ -174,6 +180,10 @@ Extract the zip file and drop the contents in the wp-content/plugins/ directory
174
  = v1.5.3 (2013-09-14) - (Dev time: 0.5 hours) =
175
  - Fix issue in bulk deleting logs
176
 
 
 
 
 
177
  == Upgrade Notice ==
178
 
179
  = 0.9.2 =
@@ -188,6 +198,9 @@ Rewrote Admin interface using native tables
188
  = 1.5.3 =
189
  Fix issue in bulk deleting logs
190
 
 
 
 
191
  == Readme Generator ==
192
 
193
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 3.3
5
  Tested up to: 3.6.1
6
+ Stable tag: 1.5.4
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
104
 
105
  1. The above screenshot shows how the logged emails will be displayed by the Plugin
106
 
107
+ 2. This screenshot shows how you can configure the email display screen. You can choose the fields and the number of emails per page
108
+
109
+ 3. This screenshot shows the additional fields that will be added by the [more fields](http://sudarmuthu.com/wordpress/email-log/pro-addons#more-fields-addon) addon
110
+
111
+ 4. The above screenshot shows how the logged emails will be displayed by the Plugin after you install the [more fields](http://sudarmuthu.com/wordpress/email-log/pro-addons#more-fields-addon) addon
112
+
113
+ 5. This screenshot shows the settings page of [forward email](http://sudarmuthu.com/wordpress/email-log/pro-addons#forward-email-addon) addon
114
 
115
  == Changelog ==
116
 
180
  = v1.5.3 (2013-09-14) - (Dev time: 0.5 hours) =
181
  - Fix issue in bulk deleting logs
182
 
183
+ = v1.5.4 (2013-09-21) - (Dev time: 0.5 hours) =
184
+ - Fix issue in searching non-english characters
185
+ - Add addon screenshots
186
+
187
  == Upgrade Notice ==
188
 
189
  = 0.9.2 =
198
  = 1.5.3 =
199
  Fix issue in bulk deleting logs
200
 
201
+ = 1.5.4 =
202
+ Fixed issue in searching for non-english characters
203
+
204
  == Readme Generator ==
205
 
206
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
screenshot-3.png CHANGED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file