Better Notifications for WordPress - Version 1.7.5

Version Description

  • 23rd September 2019 =
  • Added: Support for the new Digest add-on!
  • Added: Support for some big changes coming to the Custom Fields add-on.
  • Added: New Spanish translation.
  • Fixed: An issue relating to shortcodes in the Multisite add-on.
  • Fixed: Any 'Privacy' notifications are now hiding options that can't be overridden.
  • Fixed: Disabling automatic paragraphs on the 'User Lost Password - For User' notification wasn't working.
Download this release

Release Info

Developer voltronik
Plugin Icon 128x128 Better Notifications for WordPress
Version 1.7.5
Comparing to
See all releases

Code changes from version 1.7.4 to 1.7.5

README.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: voltronik
3
  Donate link: https://betternotificationsforwp.com/donate/
4
  Tags: notification, email, push, sms, alert, HTML, customize, bulk, trigger, CC, BCC
5
  Requires at least: 4.0
6
- Tested up to: 5.2.2
7
  Requires PHP: 5.6
8
- Stable tag: 1.7.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -218,6 +218,14 @@ Yes, of course! The plugin is completely translation-friendly and if you send me
218
 
219
  == Changelog ==
220
 
 
 
 
 
 
 
 
 
221
  = 1.7.4 - 19th August 2019 =
222
  * New: You can now filter the mail headers in BNFW using `bnfw_mail_headers`. More details [here](https://betternotificationsforwp.com/documentation/actions-and-filters/).
223
  * Added: Better support for the new Block Editor (Gutenberg) and all post/page/custom post type notifications. More and better support coming soon.
3
  Donate link: https://betternotificationsforwp.com/donate/
4
  Tags: notification, email, push, sms, alert, HTML, customize, bulk, trigger, CC, BCC
5
  Requires at least: 4.0
6
+ Tested up to: 5.2.3
7
  Requires PHP: 5.6
8
+ Stable tag: 1.7.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
218
 
219
  == Changelog ==
220
 
221
+ = 1.7.5 - 23rd September 2019 =
222
+ * Added: Support for the new [Digest add-on](https://betternotificationsforwp.com/downloads/digest/)!
223
+ * Added: Support for some big changes coming to the [Custom Fields add-on](https://betternotificationsforwp.com/downloads/custom-fields/).
224
+ * Added: New Spanish translation.
225
+ * Fixed: An issue relating to shortcodes in the [Multisite add-on](https://betternotificationsforwp.com/downloads/multisite/).
226
+ * Fixed: Any 'Privacy' notifications are now hiding options that can't be overridden.
227
+ * Fixed: Disabling automatic paragraphs on the 'User Lost Password - For User' notification wasn't working.
228
+
229
  = 1.7.4 - 19th August 2019 =
230
  * New: You can now filter the mail headers in BNFW using `bnfw_mail_headers`. More details [here](https://betternotificationsforwp.com/documentation/actions-and-filters/).
231
  * Added: Better support for the new Block Editor (Gutenberg) and all post/page/custom post type notifications. More and better support coming soon.
assets/img/icon-256x256.png CHANGED
Binary file
assets/js/bnfw.js CHANGED
@@ -80,6 +80,12 @@ jQuery(document).ready(function($) {
80
 
81
  $( '#subject-wrapper' ).hide();
82
  }
 
 
 
 
 
 
83
  } else if ( 'new-comment' === notification || notification.startsWith( 'moderate-comment-' ) || 'new-trackback' === notification || 'new-pingback' === notification ||
84
  'admin-password' === notification || 'admin-user' === notification || 'admin-role' === notification ) {
85
 
@@ -149,6 +155,12 @@ jQuery(document).ready(function($) {
149
 
150
  $( '#subject-wrapper' ).hide();
151
  }
 
 
 
 
 
 
152
  } else if ( 'new-comment' === notification || notification.startsWith( 'moderate-comment-' ) || 'new-trackback' === notification || 'new-pingback' === notification ||
153
  'admin-password' === notification || 'admin-user' === notification || 'admin-role' === notification ) {
154
 
80
 
81
  $( '#subject-wrapper' ).hide();
82
  }
83
+
84
+ if ( 'uc-export-data' === notification || 'uc-erase-data' === notification || 'data-export' === notification ||
85
+ 'ca-export-data' === notification || 'ca-erase-data' === notification || 'data-erased' === notification ) {
86
+
87
+ $( '#email-formatting' ).hide();
88
+ }
89
  } else if ( 'new-comment' === notification || notification.startsWith( 'moderate-comment-' ) || 'new-trackback' === notification || 'new-pingback' === notification ||
90
  'admin-password' === notification || 'admin-user' === notification || 'admin-role' === notification ) {
91
 
155
 
156
  $( '#subject-wrapper' ).hide();
157
  }
158
+
159
+ if ( 'uc-export-data' === notification || 'uc-erase-data' === notification || 'data-export' === notification ||
160
+ 'ca-export-data' === notification || 'ca-erase-data' === notification || 'data-erased' === notification ) {
161
+
162
+ $( '#email-formatting' ).hide();
163
+ }
164
  } else if ( 'new-comment' === notification || notification.startsWith( 'moderate-comment-' ) || 'new-trackback' === notification || 'new-pingback' === notification ||
165
  'admin-password' === notification || 'admin-user' === notification || 'admin-role' === notification ) {
166
 
bnfw.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Better Notifications for WP
4
  * Plugin URI: https://wordpress.org/plugins/bnfw/
5
  * Description: Supercharge your WordPress notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Add more power with Add-ons.
6
- * Version: 1.7.4
7
  * Author: Made with Fuel
8
  * Author URI: https://betternotificationsforwp.com/
9
  * Author Email: hello@betternotificationsforwp.com
@@ -394,6 +394,11 @@ class BNFW {
394
  * @param object $post Post object
395
  */
396
  function on_post_scheduled( $post_id, $post ) {
 
 
 
 
 
397
  $post_type = $post->post_type;
398
 
399
  if ( BNFW_Notification::POST_TYPE != $post_type ) {
@@ -536,7 +541,9 @@ class BNFW {
536
 
537
  if ( 'html' == $setting['email-formatting'] ) {
538
  add_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type' ) );
539
- $message = wpautop( $message );
 
 
540
  } else {
541
  add_filter( 'wp_mail_content_type', array( $this, 'set_text_content_type' ) );
542
  }
3
  * Plugin Name: Better Notifications for WP
4
  * Plugin URI: https://wordpress.org/plugins/bnfw/
5
  * Description: Supercharge your WordPress notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Add more power with Add-ons.
6
+ * Version: 1.7.5
7
  * Author: Made with Fuel
8
  * Author URI: https://betternotificationsforwp.com/
9
  * Author Email: hello@betternotificationsforwp.com
394
  * @param object $post Post object
395
  */
396
  function on_post_scheduled( $post_id, $post ) {
397
+ // Rest request also triggers the same hook. We can ignore it.
398
+ if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
399
+ return;
400
+ }
401
+
402
  $post_type = $post->post_type;
403
 
404
  if ( BNFW_Notification::POST_TYPE != $post_type ) {
541
 
542
  if ( 'html' == $setting['email-formatting'] ) {
543
  add_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type' ) );
544
+ if ( 'true' !== $setting['disable-autop'] ) {
545
+ $message = wpautop( $message );
546
+ }
547
  } else {
548
  add_filter( 'wp_mail_content_type', array( $this, 'set_text_content_type' ) );
549
  }
includes/admin/class-bnfw-notification.php CHANGED
@@ -128,8 +128,7 @@ class BNFW_Notification {
128
  array( $this, 'render_settings_meta_box' ), // Callback function
129
  self::POST_TYPE, // Admin page (or post type)
130
  'normal', // Context
131
- 'default',
132
- array( '__block_editor_compatible_meta_box' => false )
133
  );
134
 
135
  add_meta_box(
@@ -138,8 +137,7 @@ class BNFW_Notification {
138
  array( $this, 'render_submitdiv' ),
139
  self::POST_TYPE,
140
  'side',
141
- 'core',
142
- array( '__block_editor_compatible_meta_box' => false )
143
  );
144
  }
145
 
128
  array( $this, 'render_settings_meta_box' ), // Callback function
129
  self::POST_TYPE, // Admin page (or post type)
130
  'normal', // Context
131
+ 'default'
 
132
  );
133
 
134
  add_meta_box(
137
  array( $this, 'render_submitdiv' ),
138
  self::POST_TYPE,
139
  'side',
140
+ 'core'
 
141
  );
142
  }
143
 
includes/engine/class-bnfw-engine.php CHANGED
@@ -487,6 +487,20 @@ class BNFW_Engine {
487
  return $message;
488
  }
489
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  /**
491
  * Handle Global User Shortcodes.
492
  *
487
  return $message;
488
  }
489
 
490
+ /**
491
+ * Handle Global shortcodes.
492
+ *
493
+ * @param string $message Message.
494
+ * @param string $email Email.
495
+ *
496
+ * @return string
497
+ */
498
+ public function handle_global_shortcodes( $message, $email ) {
499
+ $message = $this->global_shortcodes( $message );
500
+
501
+ return $this->handle_global_user_shortcodes( $message, $email );
502
+ }
503
+
504
  /**
505
  * Handle Global User Shortcodes.
506
  *
languages/bnfw-es_ES.mo ADDED
Binary file
languages/bnfw-es_ES.po ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Better Notifications for WP 1.3.3\n"
4
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bnfw\n"
5
+ "POT-Creation-Date: 2015-08-11 05:30:23+00:00\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "PO-Revision-Date: 2019-09-12 00:50-0300\n"
10
+ "Language-Team: \n"
11
+ "X-Generator: Poedit 2.2.3\n"
12
+ "Last-Translator: \n"
13
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
+ "Language: es\n"
15
+
16
+ msgid " (Auto Imported)"
17
+ msgstr " (auto importación)"
18
+
19
+ msgid " Comment"
20
+ msgstr " Comentario"
21
+
22
+ msgid " Pending Review"
23
+ msgstr " Reseña pendiente"
24
+
25
+ msgid " Scheduled"
26
+ msgstr " Programado"
27
+
28
+ msgid " for "
29
+ msgstr " para "
30
+
31
+ msgid "Add New"
32
+ msgstr "Añadir nuevo"
33
+
34
+ msgid "Add New Notification"
35
+ msgstr "Añadir nuevo aviso"
36
+
37
+ msgid "Additional Email Fields"
38
+ msgstr "Campos de email adicionales"
39
+
40
+ msgid "All Notifications"
41
+ msgstr "Todas las notificaciones"
42
+
43
+ msgid "BCC"
44
+ msgstr "BCC"
45
+
46
+ msgid "BNFW Settings"
47
+ msgstr "Ajsutes de BNFW"
48
+
49
+ msgid "Better Notifications for WP"
50
+ msgstr "Better Notifications for WP"
51
+
52
+ msgid "CC"
53
+ msgstr "CC"
54
+
55
+ msgid "Comment Reply"
56
+ msgstr "Respuesta a comentario"
57
+
58
+ msgid "Custom Post Type"
59
+ msgstr "Custom Post Type"
60
+
61
+ msgid "Custom Taxonomy"
62
+ msgstr "Custom Taxonomy"
63
+
64
+ msgid "Default Email Format"
65
+ msgstr "Formato de email predeterminado"
66
+
67
+ msgid "Delete Permanently"
68
+ msgstr "Borrar definitivamente"
69
+
70
+ msgid "Disable Notification"
71
+ msgstr "Desactivar notificación"
72
+
73
+ msgid "Disable this Notification for the User that triggered it"
74
+ msgstr "Desactivar esta notificación para el usuario que la ha activado"
75
+
76
+ msgid "Don't send notifications for comments marked as SPAM by Akismet"
77
+ msgstr "No enviar notificaciones por comentarios que Akismet considere SPAM"
78
+
79
+ msgid "E-mail: %s"
80
+ msgstr "Email: %s"
81
+
82
+ msgid "Edit Notification"
83
+ msgstr "Editar notificación"
84
+
85
+ msgid "Email Formatting"
86
+ msgstr "Email Formatting"
87
+
88
+ msgid "Enabled?"
89
+ msgstr "Habilitado?"
90
+
91
+ msgid "From Name and Email"
92
+ msgstr "Nombre y email \"De\""
93
+
94
+ msgid "HTML Formatting"
95
+ msgstr "Formato HTML"
96
+
97
+ msgid ""
98
+ "Looking for help with shortcodes? Click here to see which ones you can use "
99
+ "with the selected notification."
100
+ msgstr ""
101
+ "Buscando ayuda con shortcodes? Click aquí para ver cuales puedes usar con la "
102
+ "notificación seleccionada."
103
+
104
+ msgid "Lost Password - For Admin"
105
+ msgstr "No recuerdo la clave - para Admin"
106
+
107
+ msgid "Lost Password - For User"
108
+ msgstr "Clave perdida - para Usuario"
109
+
110
+ msgid "Made with Fuel"
111
+ msgstr "Hecho con Fuel"
112
+
113
+ msgid "Message Body"
114
+ msgstr "Cuerpo del mensaje"
115
+
116
+ msgid "Move to Trash"
117
+ msgstr "Enviar a la papelera"
118
+
119
+ msgid "New"
120
+ msgstr "Nuevo"
121
+
122
+ msgid "New "
123
+ msgstr "Nuevo "
124
+
125
+ msgid "New Category"
126
+ msgstr "Nueva categoría"
127
+
128
+ msgid "New Comment"
129
+ msgstr "Nuevo comentario"
130
+
131
+ msgid "New Comment / Awaiting Moderation"
132
+ msgstr "Nuevo comentario / Esperando moderación"
133
+
134
+ msgid "New Notification"
135
+ msgstr "Nueva notificación"
136
+
137
+ msgid "New Page Published"
138
+ msgstr "Nueva página publicada"
139
+
140
+ msgid "New Pingback"
141
+ msgstr "Nuevo Pingback"
142
+
143
+ msgid "New Post Published"
144
+ msgstr "Nuevo post publicado"
145
+
146
+ msgid "New Tag"
147
+ msgstr "Nueva etiqueta"
148
+
149
+ msgid "New Trackback"
150
+ msgstr "Nuevo Trackback"
151
+
152
+ msgid "New User - Welcome Email"
153
+ msgstr "Nuevo Usuario - Email de bienvenida"
154
+
155
+ msgid "New User - Welcome email"
156
+ msgstr "Nuevo usuario - Email de bienvenida"
157
+
158
+ msgid "New User Registration - For Admin"
159
+ msgstr "Nuevo usuario registrado - para Admin"
160
+
161
+ msgid "New User Registration - For User"
162
+ msgstr "Nuevo usuario registrado - para Usuario"
163
+
164
+ msgid "New term in "
165
+ msgstr "Nuevo término en "
166
+
167
+ msgid "New user registration on your site %s:"
168
+ msgstr "Nuevo usuario registrado en tu sitio %s:"
169
+
170
+ msgid "No Notifications found"
171
+ msgstr "No hemos encontrado notificaciones"
172
+
173
+ msgid "No Notifications found in trash"
174
+ msgstr "No encontramos notificaciones en la Papelera"
175
+
176
+ msgid "Notification"
177
+ msgstr "Notificación"
178
+
179
+ msgid "Notification For"
180
+ msgstr "Notificación por"
181
+
182
+ msgid "Notification Type"
183
+ msgstr "Tipo de notificación"
184
+
185
+ msgid "Notification saved."
186
+ msgstr "Notificación guardada."
187
+
188
+ msgid "Notifications"
189
+ msgstr "Notificaciones"
190
+
191
+ msgid "Page - New Comment"
192
+ msgstr "Página - Nuevo comentario"
193
+
194
+ msgid "Page Pending Review"
195
+ msgstr "Página pendiente de reseña"
196
+
197
+ msgid "Page Scheduled"
198
+ msgstr "Página programada"
199
+
200
+ msgid "Page Updated"
201
+ msgstr "Página actualizada"
202
+
203
+ msgid "Password: %s"
204
+ msgstr "Clave: %s"
205
+
206
+ msgid "Pending Review"
207
+ msgstr "Reseña pendiente"
208
+
209
+ msgid "Plain Text"
210
+ msgstr "Texto plano"
211
+
212
+ msgid "Post Pending Review"
213
+ msgstr "Post pendiente de reseña"
214
+
215
+ msgid "Post Scheduled"
216
+ msgstr "Post programado"
217
+
218
+ msgid "Post Updated"
219
+ msgstr "Post actualizado"
220
+
221
+ msgid "Save"
222
+ msgstr "Guardar"
223
+
224
+ msgid "Save Notification"
225
+ msgstr "Guardar notificacion"
226
+
227
+ msgid "Scheduled"
228
+ msgstr "Programado"
229
+
230
+ msgid "Search Notifications"
231
+ msgstr "Buscar notificaciones"
232
+
233
+ msgid "Send Me a Test Email"
234
+ msgstr "Enviarme un email de prueba"
235
+
236
+ msgid "Send To"
237
+ msgstr "Enviar A"
238
+
239
+ msgid ""
240
+ "Send customisable HTML emails to your users for different WordPress "
241
+ "notifications."
242
+ msgstr ""
243
+ "Enviar emails HTML configurables a tus usuarios por distintas notificaciones "
244
+ "de WordPress."
245
+
246
+ msgid "Send this notification to the Post Author only"
247
+ msgstr "Enviar esta notificación solo a los autores de Post"
248
+
249
+ msgid "Settings"
250
+ msgstr "Ajustes"
251
+
252
+ msgid "Show additional email fields"
253
+ msgstr "Mostrar campos de email adicionales"
254
+
255
+ msgid "Subject"
256
+ msgstr "Asunto"
257
+
258
+ msgid "Suppress SPAM comment notification"
259
+ msgstr "Excluir notificaciones de comentarios marcados como SPAM"
260
+
261
+ msgid "Test Notification Sent."
262
+ msgstr "Test de notificación enviado."
263
+
264
+ msgid ""
265
+ "This notification doesn't support additional email fields or shortcodes in "
266
+ "the subject line."
267
+ msgstr ""
268
+ "Esta notificación no acepta campos de email adicionales o shortcodes en la "
269
+ "línea Asunto."
270
+
271
+ msgid ""
272
+ "This will apply to all emails sent out via WordPress, even those from other "
273
+ "plugins. For more details, please see the <a href=\"https://wordpress.org/"
274
+ "plugins/bnfw/faq/\" target=\"_blank\">FAQ</a>."
275
+ msgstr ""
276
+ "Esto aplicará a todos los emails enviados vía WordPress, incluso desde otros "
277
+ "plugins. Para más detalles, por favor mira <a href=\"https://wordpress.org/"
278
+ "plugins/bnfw/faq/\" target=\"_blank\">FAQ</a>."
279
+
280
+ msgid "Update "
281
+ msgstr "Actualizar "
282
+
283
+ msgid "Updated "
284
+ msgstr "Actualizado "
285
+
286
+ msgid "User Registration - For Admin"
287
+ msgstr "Registración de usuario - para Admin"
288
+
289
+ msgid "User Registration - For User"
290
+ msgstr "Registración de usuario - para Usuarios"
291
+
292
+ msgid "User Roles / Users"
293
+ msgstr "Roles de Usuario / Usuarios"
294
+
295
+ msgid "Username: %s"
296
+ msgstr "Nombre de Usuario: %s"
297
+
298
+ msgid "View Notification"
299
+ msgstr "Ver notificación"
300
+
301
+ msgid "[%s] New User Registration"
302
+ msgstr "[%s] Registro de nuevo usuario"
303
+
304
+ msgid "[%s] Your username and password"
305
+ msgstr "[%s] Tu nombre de usuario y clave"
306
+
307
+ msgid "http://wordpress.org/plugins/bnfw/"
308
+ msgstr "http://wordpress.org/plugins/bnfw/"
309
+
310
+ msgid "https://betternotificationsforwp.com/"
311
+ msgstr "https://betternotificationsforwp.com/"