WP Mail Logging - Version 1.9.1

Version Description

Download this release

Release Info

Developer No3x
Plugin Icon 128x128 WP Mail Logging
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9.0 to 1.9.1

languages/wp-mail-logging-de_DE.mo CHANGED
Binary file
languages/wp-mail-logging-de_DE.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: WP Mail Logging 1.8.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-logging\n"
7
- "POT-Creation-Date: 2019-04-07 15:23:09+00:00\n"
8
- "PO-Revision-Date: 2019-04-07 17:23+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: de_DE\n"
@@ -41,7 +41,7 @@ msgstr "Empfänger"
41
  msgid "Subject"
42
  msgstr "Betreff"
43
 
44
- #: src/Renderer/WPML_ColumnManager.php:36 src/WPML_OptionsManager.php:498
45
  msgid "Message"
46
  msgstr "Nachricht"
47
 
@@ -75,80 +75,80 @@ msgstr "Keine E-Mail gefunden."
75
  msgid "Settings"
76
  msgstr "Einstellungen"
77
 
78
- #: src/WPML_OptionsManager.php:324 src/WPML_OptionsManager.php:325
79
  msgid "WP Mail Log"
80
  msgstr ""
81
 
82
- #: src/WPML_OptionsManager.php:336 src/WPML_OptionsManager.php:337
83
- #: src/WPML_OptionsManager.php:348
84
  msgid "About"
85
  msgstr "Über"
86
 
87
- #: src/WPML_OptionsManager.php:423
88
  msgid "About Plugin"
89
  msgstr "Über das Plugin"
90
 
91
- #: src/WPML_OptionsManager.php:432
92
  msgid "More information"
93
  msgstr "Mehr Informationen"
94
 
95
- #: src/WPML_OptionsManager.php:433
96
  msgid "Plugin Homepage/support"
97
  msgstr ""
98
 
99
- #: src/WPML_OptionsManager.php:434
100
  msgid "Plugin author's blog"
101
  msgstr ""
102
 
103
- #: src/WPML_OptionsManager.php:441
104
  msgid "Entries per page"
105
  msgstr "Einträge pro Seite"
106
 
107
- #: src/WPML_OptionsManager.php:463
108
  msgid "You do not have sufficient permissions to access this page."
109
  msgstr "Sie haben keine ausreichende Berechtigung um diese Seite zu öffnen."
110
 
111
- #: src/WPML_OptionsManager.php:472
112
  msgid "Log"
113
  msgstr "Log"
114
 
115
- #: src/WPML_OptionsManager.php:515
116
  msgid "Close"
117
  msgstr "Schließen"
118
 
119
- #: src/WPML_OptionsManager.php:529
120
  msgid "Search"
121
  msgstr "Suchen"
122
 
123
- #: src/WPML_OptionsManager.php:554
124
  msgid "true"
125
  msgstr ""
126
 
127
- #: src/WPML_OptionsManager.php:556
128
  msgid "false"
129
  msgstr ""
130
 
131
- #: src/WPML_OptionsManager.php:559
132
  msgid "Administrator"
133
  msgstr ""
134
 
135
- #: src/WPML_OptionsManager.php:561
136
  msgid "Editor"
137
  msgstr ""
138
 
139
- #: src/WPML_OptionsManager.php:563
140
  msgid "Author"
141
  msgstr ""
142
 
143
- #: src/WPML_OptionsManager.php:565
144
  msgid "Contributor"
145
  msgstr ""
146
 
147
- #: src/WPML_OptionsManager.php:567
148
  msgid "Subscriber"
149
  msgstr ""
150
 
151
- #: src/WPML_OptionsManager.php:569
152
  msgid "Anyone"
153
  msgstr ""
154
 
4
  msgstr ""
5
  "Project-Id-Version: WP Mail Logging 1.8.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-logging\n"
7
+ "POT-Creation-Date: 2019-04-18 12:48:29+00:00\n"
8
+ "PO-Revision-Date: 2019-04-18 14:49+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: de_DE\n"
41
  msgid "Subject"
42
  msgstr "Betreff"
43
 
44
+ #: src/Renderer/WPML_ColumnManager.php:36 src/WPML_OptionsManager.php:504
45
  msgid "Message"
46
  msgstr "Nachricht"
47
 
75
  msgid "Settings"
76
  msgstr "Einstellungen"
77
 
78
+ #: src/WPML_OptionsManager.php:328 src/WPML_OptionsManager.php:329
79
  msgid "WP Mail Log"
80
  msgstr ""
81
 
82
+ #: src/WPML_OptionsManager.php:340 src/WPML_OptionsManager.php:341
83
+ #: src/WPML_OptionsManager.php:352
84
  msgid "About"
85
  msgstr "Über"
86
 
87
+ #: src/WPML_OptionsManager.php:429
88
  msgid "About Plugin"
89
  msgstr "Über das Plugin"
90
 
91
+ #: src/WPML_OptionsManager.php:438
92
  msgid "More information"
93
  msgstr "Mehr Informationen"
94
 
95
+ #: src/WPML_OptionsManager.php:439
96
  msgid "Plugin Homepage/support"
97
  msgstr ""
98
 
99
+ #: src/WPML_OptionsManager.php:440
100
  msgid "Plugin author's blog"
101
  msgstr ""
102
 
103
+ #: src/WPML_OptionsManager.php:447
104
  msgid "Entries per page"
105
  msgstr "Einträge pro Seite"
106
 
107
+ #: src/WPML_OptionsManager.php:469
108
  msgid "You do not have sufficient permissions to access this page."
109
  msgstr "Sie haben keine ausreichende Berechtigung um diese Seite zu öffnen."
110
 
111
+ #: src/WPML_OptionsManager.php:478
112
  msgid "Log"
113
  msgstr "Log"
114
 
115
+ #: src/WPML_OptionsManager.php:521
116
  msgid "Close"
117
  msgstr "Schließen"
118
 
119
+ #: src/WPML_OptionsManager.php:535
120
  msgid "Search"
121
  msgstr "Suchen"
122
 
123
+ #: src/WPML_OptionsManager.php:560
124
  msgid "true"
125
  msgstr ""
126
 
127
+ #: src/WPML_OptionsManager.php:562
128
  msgid "false"
129
  msgstr ""
130
 
131
+ #: src/WPML_OptionsManager.php:565
132
  msgid "Administrator"
133
  msgstr ""
134
 
135
+ #: src/WPML_OptionsManager.php:567
136
  msgid "Editor"
137
  msgstr ""
138
 
139
+ #: src/WPML_OptionsManager.php:569
140
  msgid "Author"
141
  msgstr ""
142
 
143
+ #: src/WPML_OptionsManager.php:571
144
  msgid "Contributor"
145
  msgstr ""
146
 
147
+ #: src/WPML_OptionsManager.php:573
148
  msgid "Subscriber"
149
  msgstr ""
150
 
151
+ #: src/WPML_OptionsManager.php:575
152
  msgid "Anyone"
153
  msgstr ""
154
 
languages/wp-mail-logging-zh_CN.mo CHANGED
Binary file
languages/wp-mail-logging-zh_CN.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: WP Mail Logging 1.8.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-logging\n"
7
- "POT-Creation-Date: 2019-04-07 15:23:09+00:00\n"
8
- "PO-Revision-Date: 2019-04-07 17:23+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: zh_CN\n"
@@ -41,7 +41,7 @@ msgstr "收件人"
41
  msgid "Subject"
42
  msgstr "主题"
43
 
44
- #: src/Renderer/WPML_ColumnManager.php:36 src/WPML_OptionsManager.php:498
45
  msgid "Message"
46
  msgstr "消息"
47
 
@@ -73,80 +73,80 @@ msgstr "未找到电子邮件。"
73
  msgid "Settings"
74
  msgstr "设置"
75
 
76
- #: src/WPML_OptionsManager.php:324 src/WPML_OptionsManager.php:325
77
  msgid "WP Mail Log"
78
  msgstr "WP Mail Log"
79
 
80
- #: src/WPML_OptionsManager.php:336 src/WPML_OptionsManager.php:337
81
- #: src/WPML_OptionsManager.php:348
82
  msgid "About"
83
  msgstr "关于"
84
 
85
- #: src/WPML_OptionsManager.php:423
86
  msgid "About Plugin"
87
  msgstr "关于插件"
88
 
89
- #: src/WPML_OptionsManager.php:432
90
  msgid "More information"
91
  msgstr "更多信息"
92
 
93
- #: src/WPML_OptionsManager.php:433
94
  msgid "Plugin Homepage/support"
95
  msgstr "插件主页/支持"
96
 
97
- #: src/WPML_OptionsManager.php:434
98
  msgid "Plugin author's blog"
99
  msgstr "插件作者的博客"
100
 
101
- #: src/WPML_OptionsManager.php:441
102
  msgid "Entries per page"
103
  msgstr "每页的项目数:"
104
 
105
- #: src/WPML_OptionsManager.php:463
106
  msgid "You do not have sufficient permissions to access this page."
107
  msgstr "您没有足够的权限来访问该页面。"
108
 
109
- #: src/WPML_OptionsManager.php:472
110
  msgid "Log"
111
  msgstr "日志"
112
 
113
- #: src/WPML_OptionsManager.php:515
114
  msgid "Close"
115
  msgstr "关闭"
116
 
117
- #: src/WPML_OptionsManager.php:529
118
  msgid "Search"
119
  msgstr "搜索"
120
 
121
- #: src/WPML_OptionsManager.php:554
122
  msgid "true"
123
  msgstr "true"
124
 
125
- #: src/WPML_OptionsManager.php:556
126
  msgid "false"
127
  msgstr "false"
128
 
129
- #: src/WPML_OptionsManager.php:559
130
  msgid "Administrator"
131
  msgstr "管理员"
132
 
133
- #: src/WPML_OptionsManager.php:561
134
  msgid "Editor"
135
  msgstr "编辑"
136
 
137
- #: src/WPML_OptionsManager.php:563
138
  msgid "Author"
139
  msgstr "作者"
140
 
141
- #: src/WPML_OptionsManager.php:565
142
  msgid "Contributor"
143
  msgstr "贡献者"
144
 
145
- #: src/WPML_OptionsManager.php:567
146
  msgid "Subscriber"
147
  msgstr "订阅者"
148
 
149
- #: src/WPML_OptionsManager.php:569
150
  msgid "Anyone"
151
  msgstr "任何人"
152
 
4
  msgstr ""
5
  "Project-Id-Version: WP Mail Logging 1.8.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-logging\n"
7
+ "POT-Creation-Date: 2019-04-18 12:48:29+00:00\n"
8
+ "PO-Revision-Date: 2019-04-18 14:49+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: zh_CN\n"
41
  msgid "Subject"
42
  msgstr "主题"
43
 
44
+ #: src/Renderer/WPML_ColumnManager.php:36 src/WPML_OptionsManager.php:504
45
  msgid "Message"
46
  msgstr "消息"
47
 
73
  msgid "Settings"
74
  msgstr "设置"
75
 
76
+ #: src/WPML_OptionsManager.php:328 src/WPML_OptionsManager.php:329
77
  msgid "WP Mail Log"
78
  msgstr "WP Mail Log"
79
 
80
+ #: src/WPML_OptionsManager.php:340 src/WPML_OptionsManager.php:341
81
+ #: src/WPML_OptionsManager.php:352
82
  msgid "About"
83
  msgstr "关于"
84
 
85
+ #: src/WPML_OptionsManager.php:429
86
  msgid "About Plugin"
87
  msgstr "关于插件"
88
 
89
+ #: src/WPML_OptionsManager.php:438
90
  msgid "More information"
91
  msgstr "更多信息"
92
 
93
+ #: src/WPML_OptionsManager.php:439
94
  msgid "Plugin Homepage/support"
95
  msgstr "插件主页/支持"
96
 
97
+ #: src/WPML_OptionsManager.php:440
98
  msgid "Plugin author's blog"
99
  msgstr "插件作者的博客"
100
 
101
+ #: src/WPML_OptionsManager.php:447
102
  msgid "Entries per page"
103
  msgstr "每页的项目数:"
104
 
105
+ #: src/WPML_OptionsManager.php:469
106
  msgid "You do not have sufficient permissions to access this page."
107
  msgstr "您没有足够的权限来访问该页面。"
108
 
109
+ #: src/WPML_OptionsManager.php:478
110
  msgid "Log"
111
  msgstr "日志"
112
 
113
+ #: src/WPML_OptionsManager.php:521
114
  msgid "Close"
115
  msgstr "关闭"
116
 
117
+ #: src/WPML_OptionsManager.php:535
118
  msgid "Search"
119
  msgstr "搜索"
120
 
121
+ #: src/WPML_OptionsManager.php:560
122
  msgid "true"
123
  msgstr "true"
124
 
125
+ #: src/WPML_OptionsManager.php:562
126
  msgid "false"
127
  msgstr "false"
128
 
129
+ #: src/WPML_OptionsManager.php:565
130
  msgid "Administrator"
131
  msgstr "管理员"
132
 
133
+ #: src/WPML_OptionsManager.php:567
134
  msgid "Editor"
135
  msgstr "编辑"
136
 
137
+ #: src/WPML_OptionsManager.php:569
138
  msgid "Author"
139
  msgstr "作者"
140
 
141
+ #: src/WPML_OptionsManager.php:571
142
  msgid "Contributor"
143
  msgstr "贡献者"
144
 
145
+ #: src/WPML_OptionsManager.php:573
146
  msgid "Subscriber"
147
  msgstr "订阅者"
148
 
149
+ #: src/WPML_OptionsManager.php:575
150
  msgid "Anyone"
151
  msgstr "任何人"
152
 
languages/wp-mail-logging.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP Mail Logging 1.9.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-logging\n"
7
- "POT-Creation-Date: 2019-04-07 15:23:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -40,7 +40,7 @@ msgstr ""
40
  msgid "Subject"
41
  msgstr ""
42
 
43
- #: src/Renderer/WPML_ColumnManager.php:36 src/WPML_OptionsManager.php:498
44
  msgid "Message"
45
  msgstr ""
46
 
@@ -72,80 +72,80 @@ msgstr ""
72
  msgid "Settings"
73
  msgstr ""
74
 
75
- #: src/WPML_OptionsManager.php:324 src/WPML_OptionsManager.php:325
76
  msgid "WP Mail Log"
77
  msgstr ""
78
 
79
- #: src/WPML_OptionsManager.php:336 src/WPML_OptionsManager.php:337
80
- #: src/WPML_OptionsManager.php:348
81
  msgid "About"
82
  msgstr ""
83
 
84
- #: src/WPML_OptionsManager.php:423
85
  msgid "About Plugin"
86
  msgstr ""
87
 
88
- #: src/WPML_OptionsManager.php:432
89
  msgid "More information"
90
  msgstr ""
91
 
92
- #: src/WPML_OptionsManager.php:433
93
  msgid "Plugin Homepage/support"
94
  msgstr ""
95
 
96
- #: src/WPML_OptionsManager.php:434
97
  msgid "Plugin author's blog"
98
  msgstr ""
99
 
100
- #: src/WPML_OptionsManager.php:441
101
  msgid "Entries per page"
102
  msgstr ""
103
 
104
- #: src/WPML_OptionsManager.php:463
105
  msgid "You do not have sufficient permissions to access this page."
106
  msgstr ""
107
 
108
- #: src/WPML_OptionsManager.php:472
109
  msgid "Log"
110
  msgstr ""
111
 
112
- #: src/WPML_OptionsManager.php:515
113
  msgid "Close"
114
  msgstr ""
115
 
116
- #: src/WPML_OptionsManager.php:529
117
  msgid "Search"
118
  msgstr ""
119
 
120
- #: src/WPML_OptionsManager.php:554
121
  msgid "true"
122
  msgstr ""
123
 
124
- #: src/WPML_OptionsManager.php:556
125
  msgid "false"
126
  msgstr ""
127
 
128
- #: src/WPML_OptionsManager.php:559
129
  msgid "Administrator"
130
  msgstr ""
131
 
132
- #: src/WPML_OptionsManager.php:561
133
  msgid "Editor"
134
  msgstr ""
135
 
136
- #: src/WPML_OptionsManager.php:563
137
  msgid "Author"
138
  msgstr ""
139
 
140
- #: src/WPML_OptionsManager.php:565
141
  msgid "Contributor"
142
  msgstr ""
143
 
144
- #: src/WPML_OptionsManager.php:567
145
  msgid "Subscriber"
146
  msgstr ""
147
 
148
- #: src/WPML_OptionsManager.php:569
149
  msgid "Anyone"
150
  msgstr ""
151
 
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP Mail Logging 1.9.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-logging\n"
7
+ "POT-Creation-Date: 2019-04-18 13:01:12+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
40
  msgid "Subject"
41
  msgstr ""
42
 
43
+ #: src/Renderer/WPML_ColumnManager.php:36 src/WPML_OptionsManager.php:504
44
  msgid "Message"
45
  msgstr ""
46
 
72
  msgid "Settings"
73
  msgstr ""
74
 
75
+ #: src/WPML_OptionsManager.php:328 src/WPML_OptionsManager.php:329
76
  msgid "WP Mail Log"
77
  msgstr ""
78
 
79
+ #: src/WPML_OptionsManager.php:340 src/WPML_OptionsManager.php:341
80
+ #: src/WPML_OptionsManager.php:352
81
  msgid "About"
82
  msgstr ""
83
 
84
+ #: src/WPML_OptionsManager.php:429
85
  msgid "About Plugin"
86
  msgstr ""
87
 
88
+ #: src/WPML_OptionsManager.php:438
89
  msgid "More information"
90
  msgstr ""
91
 
92
+ #: src/WPML_OptionsManager.php:439
93
  msgid "Plugin Homepage/support"
94
  msgstr ""
95
 
96
+ #: src/WPML_OptionsManager.php:440
97
  msgid "Plugin author's blog"
98
  msgstr ""
99
 
100
+ #: src/WPML_OptionsManager.php:447
101
  msgid "Entries per page"
102
  msgstr ""
103
 
104
+ #: src/WPML_OptionsManager.php:469
105
  msgid "You do not have sufficient permissions to access this page."
106
  msgstr ""
107
 
108
+ #: src/WPML_OptionsManager.php:478
109
  msgid "Log"
110
  msgstr ""
111
 
112
+ #: src/WPML_OptionsManager.php:521
113
  msgid "Close"
114
  msgstr ""
115
 
116
+ #: src/WPML_OptionsManager.php:535
117
  msgid "Search"
118
  msgstr ""
119
 
120
+ #: src/WPML_OptionsManager.php:560
121
  msgid "true"
122
  msgstr ""
123
 
124
+ #: src/WPML_OptionsManager.php:562
125
  msgid "false"
126
  msgstr ""
127
 
128
+ #: src/WPML_OptionsManager.php:565
129
  msgid "Administrator"
130
  msgstr ""
131
 
132
+ #: src/WPML_OptionsManager.php:567
133
  msgid "Editor"
134
  msgstr ""
135
 
136
+ #: src/WPML_OptionsManager.php:569
137
  msgid "Author"
138
  msgstr ""
139
 
140
+ #: src/WPML_OptionsManager.php:571
141
  msgid "Contributor"
142
  msgstr ""
143
 
144
+ #: src/WPML_OptionsManager.php:573
145
  msgid "Subscriber"
146
  msgstr ""
147
 
148
+ #: src/WPML_OptionsManager.php:575
149
  msgid "Anyone"
150
  msgstr ""
151
 
readme.txt CHANGED
@@ -5,8 +5,8 @@ Tags: mail, email, log, logging, debug, list, store, collect, view
5
  License: GPLv3
6
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
7
  Requires at least: 3.0
8
- Tested up to: 5.1
9
- Stable tag: 1.9.0
10
 
11
  Logs each email sent by WordPress.
12
 
@@ -51,6 +51,10 @@ The logged email has been sent by WordPress but please note this does NOT mean i
51
 
52
  == Changelog ==
53
 
 
 
 
 
54
  = 1.9.0, April 7, 2019 =
55
  - Fix: PHP Notice: Undefined index: REMOTE_ADDR
56
  - Fix: Resend for multiple receivers
5
  License: GPLv3
6
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
7
  Requires at least: 3.0
8
+ Tested up to: 5.1.1
9
+ Stable tag: 1.9.1
10
 
11
  Logs each email sent by WordPress.
12
 
51
 
52
  == Changelog ==
53
 
54
+ = 1.9.1, April 18, 2019 =
55
+ - Fix: log-view resources loaded on each page (performance issue)
56
+ - Fix: attachment icon is not displayed (e.g. if mime-type is unsupported)
57
+
58
  = 1.9.0, April 7, 2019 =
59
  - Fix: PHP Notice: Undefined index: REMOTE_ADDR
60
  - Fix: Resend for multiple receivers
src/Renderer/WPML_MailRenderer_AJAX_Handler.php CHANGED
@@ -37,7 +37,6 @@ class WPML_MailRenderer_AJAX_Handler implements IHooks {
37
  * @var WPML_MailRenderer
38
  */
39
  private $mailRenderer;
40
- private $plugin_meta;
41
 
42
  /**
43
  * @param WPML_MailRenderer $mailRenderer
@@ -50,12 +49,11 @@ class WPML_MailRenderer_AJAX_Handler implements IHooks {
50
  self::getInstance()->plugin_meta = $plugin_meta;
51
  }
52
 
53
- public function __construct(WPML_MailRenderer $mailRenderer, $plugin_meta) {
54
  if( null == self::$handler ) {
55
  self::$handler = $this;
56
  }
57
  self::getInstance()->setMailRenderer($mailRenderer);
58
- self::getInstance()->setPluginMeta($plugin_meta);
59
  }
60
 
61
  public static function getInstance() {
@@ -67,16 +65,6 @@ class WPML_MailRenderer_AJAX_Handler implements IHooks {
67
  */
68
  function addActionsAndFilters() {
69
  add_action('wp_ajax_' . self::ACTION, array(self::$handler, 'handle'));
70
- add_action('wp_loaded', array(self::$handler, 'register_script'));
71
- }
72
-
73
- /**
74
- * Register our AJAX JavaScript.
75
- */
76
- public function register_script() {
77
- wp_register_script('wp-mail-logging-modal', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../../js/modal.js', array( 'jquery' ), $this->plugin_meta['version'], true);
78
- wp_localize_script('wp-mail-logging-modal', 'wpml_modal_ajax', $this->get_ajax_data());
79
- wp_enqueue_script('wp-mail-logging-modal');
80
  }
81
 
82
  /**
37
  * @var WPML_MailRenderer
38
  */
39
  private $mailRenderer;
 
40
 
41
  /**
42
  * @param WPML_MailRenderer $mailRenderer
49
  self::getInstance()->plugin_meta = $plugin_meta;
50
  }
51
 
52
+ public function __construct(WPML_MailRenderer $mailRenderer) {
53
  if( null == self::$handler ) {
54
  self::$handler = $this;
55
  }
56
  self::getInstance()->setMailRenderer($mailRenderer);
 
57
  }
58
 
59
  public static function getInstance() {
65
  */
66
  function addActionsAndFilters() {
67
  add_action('wp_ajax_' . self::ACTION, array(self::$handler, 'handle'));
 
 
 
 
 
 
 
 
 
 
68
  }
69
 
70
  /**
src/WPML_Init.php CHANGED
@@ -70,7 +70,7 @@ class WPML_Init {
70
  public function init( $file ) {
71
 
72
  $this->container['plugin'] = function ($c) {
73
- return new WPML_Plugin($c['supported-mail-renderer-formats']);
74
  };
75
  $this->container['plugin-meta'] = function ($c) use ($file) {
76
  /* @var $plugin WPML_Plugin */
@@ -117,7 +117,7 @@ class WPML_Init {
117
  return new WPML_PrivacyController($c['plugin-meta']);
118
  };
119
  $this->container['mailRendererAjaxHandler'] = function ($c) {
120
- return new WPML_MailRenderer_AJAX_Handler($c['mailRenderer'], $c['plugin-meta']);
121
  };
122
  $this->container['mailRenderer'] = function ($c) {
123
  return new WPML_MailRenderer( new DefaultMailService() );
70
  public function init( $file ) {
71
 
72
  $this->container['plugin'] = function ($c) {
73
+ return new WPML_Plugin($c['supported-mail-renderer-formats'], $c['mailRendererAjaxHandler']);
74
  };
75
  $this->container['plugin-meta'] = function ($c) use ($file) {
76
  /* @var $plugin WPML_Plugin */
117
  return new WPML_PrivacyController($c['plugin-meta']);
118
  };
119
  $this->container['mailRendererAjaxHandler'] = function ($c) {
120
+ return new WPML_MailRenderer_AJAX_Handler($c['mailRenderer']);
121
  };
122
  $this->container['mailRenderer'] = function ($c) {
123
  return new WPML_MailRenderer( new DefaultMailService() );
src/WPML_OptionsManager.php CHANGED
@@ -22,11 +22,15 @@
22
  namespace No3x\WPML;
23
 
24
  // Exit if accessed directly.
 
 
25
  if ( ! defined( 'ABSPATH' ) ) exit;
26
 
27
  class WPML_OptionsManager {
28
 
29
  protected $supportedMailRendererFormats;
 
 
30
 
31
  /**
32
  * Is used to retrive a settings value
@@ -378,9 +382,11 @@ class WPML_OptionsManager {
378
  if ( $screen->id != $wp_logging_list_page )
379
  return;
380
 
381
- // Enqueue Styles and Scripts if we're on the list page
382
- wp_enqueue_style( 'wp-logging-modal', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../css/modal.css', array(), '1.0.0' );
383
- wp_enqueue_style( 'wp-logging-icons', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../lib/font-awesome/css/font-awesome.min.css', array(), '4.1.0' );
 
 
384
  wp_enqueue_script( 'icheck', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../lib/icheck/icheck.min.js', array(), '1.0.2' );
385
  wp_enqueue_style( 'icheck-square', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../lib/icheck/square/blue.css', array(), '1.0.2' );
386
  }
22
  namespace No3x\WPML;
23
 
24
  // Exit if accessed directly.
25
+ use No3x\WPML\Renderer\WPML_MailRenderer_AJAX_Handler;
26
+
27
  if ( ! defined( 'ABSPATH' ) ) exit;
28
 
29
  class WPML_OptionsManager {
30
 
31
  protected $supportedMailRendererFormats;
32
+ /** @var WPML_MailRenderer_AJAX_Handler */
33
+ protected $mailRendererAJAXHandler;
34
 
35
  /**
36
  * Is used to retrive a settings value
382
  if ( $screen->id != $wp_logging_list_page )
383
  return;
384
 
385
+ // Enqueue styles and scripts if we're on the list page
386
+ wp_enqueue_style( 'wp-mail-logging-modal', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../css/modal.css', array(), $this->getVersion() );
387
+ wp_enqueue_script('wp-mail-logging-modal', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../js/modal.js', array( 'jquery' ), $this->getVersion(), true);
388
+ wp_localize_script('wp-mail-logging-modal', 'wpml_modal_ajax', $this->mailRendererAJAXHandler->get_ajax_data());
389
+ wp_enqueue_style( 'wp-mail-logging-icons', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../lib/font-awesome/css/font-awesome.min.css', array(), '4.1.0' );
390
  wp_enqueue_script( 'icheck', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../lib/icheck/icheck.min.js', array(), '1.0.2' );
391
  wp_enqueue_style( 'icheck-square', untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/../lib/icheck/square/blue.css', array(), '1.0.2' );
392
  }
src/WPML_Plugin.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace No3x\WPML;
4
 
5
  use No3x\WPML\Model\WPML_Mail as Mail;
 
6
 
7
  // Exit if accessed directly.
8
  if ( ! defined( 'ABSPATH' ) ) exit;
@@ -16,9 +17,11 @@ class WPML_Plugin extends WPML_LifeCycle implements IHooks {
16
  /**
17
  * WPML_Plugin constructor.
18
  * @param $supportedMailRendererFormats
 
19
  */
20
- public function __construct($supportedMailRendererFormats) {
21
  $this->supportedMailRendererFormats = $supportedMailRendererFormats;
 
22
  }
23
 
24
  public static function getTablename( $name ) {
3
  namespace No3x\WPML;
4
 
5
  use No3x\WPML\Model\WPML_Mail as Mail;
6
+ use No3x\WPML\Renderer\WPML_MailRenderer_AJAX_Handler;
7
 
8
  // Exit if accessed directly.
9
  if ( ! defined( 'ABSPATH' ) ) exit;
17
  /**
18
  * WPML_Plugin constructor.
19
  * @param $supportedMailRendererFormats
20
+ * @param WPML_MailRenderer_AJAX_Handler $mailRendererAJAXHandler
21
  */
22
+ public function __construct($supportedMailRendererFormats, $mailRendererAJAXHandler) {
23
  $this->supportedMailRendererFormats = $supportedMailRendererFormats;
24
+ $this->mailRendererAJAXHandler = $mailRendererAJAXHandler;
25
  }
26
 
27
  public static function getTablename( $name ) {
src/WPML_Utils.php CHANGED
@@ -52,10 +52,10 @@ class WPML_Utils {
52
  * Determines appropriate fa icon for a given icon class
53
  * @since 1.9.0
54
  * @param string $iconClass icon class.
55
- * @return string returns the most suitable fa icon or generic one if not possible.
56
  */
57
  public static function determine_fa_icon( $iconClass ) {
58
- return '<i class="fa fa-file-' . esc_attr($iconClass) . '-o"></i>';
59
  }
60
 
61
  /**
52
  * Determines appropriate fa icon for a given icon class
53
  * @since 1.9.0
54
  * @param string $iconClass icon class.
55
+ * @return string returns fa icon.
56
  */
57
  public static function determine_fa_icon( $iconClass ) {
58
+ return '<i class="fa ' . esc_attr($iconClass == "file" ? "fa-file-o" : "fa-file-{$iconClass}-o") . '"></i>';
59
  }
60
 
61
  /**
wp-mail-logging.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Mail Logging
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-mail-logging/
5
  Support URI: https://github.com/No3x/wp-mail-logging/issues
6
- Version: 1.9.0
7
  Author: Christian Z&ouml;ller
8
  Author URI: http://no3x.de/
9
  Description: Logs each email sent by WordPress.
3
  Plugin Name: WP Mail Logging
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-mail-logging/
5
  Support URI: https://github.com/No3x/wp-mail-logging/issues
6
+ Version: 1.9.1
7
  Author: Christian Z&ouml;ller
8
  Author URI: http://no3x.de/
9
  Description: Logs each email sent by WordPress.