Subscribe To Comments Reloaded - Version 160116

Version Description

Download this release

Release Info

Developer reedyseth
Plugin Icon 128x128 Subscribe To Comments Reloaded
Version 160116
Comparing to
See all releases

Code changes from version 160106 to 160116

includes/js/stcr-tinyMCE.js CHANGED
@@ -1,13 +1,13 @@
1
- /**
2
- * Initialize all the tinyMCE code.
3
- * @since 03-Aug-2015
4
- * @author reedyseth
5
- */
6
- jQuery(document).ready(function() {
7
- tinymce.init({
8
- selector: "textarea.rte",
9
- plugins: [
10
- "link hr anchor"
11
- ]
12
- });
13
- });
1
+ /**
2
+ * Initialize all the tinyMCE code.
3
+ * @since 03-Aug-2015
4
+ * @author reedyseth
5
+ */
6
+ jQuery(document).ready(function() {
7
+ tinymce.init({
8
+ selector: "textarea.rte",
9
+ plugins: [
10
+ "link hr anchor code"
11
+ ]
12
+ });
13
+ });
includes/js/tinymce-lite/plugins/code/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("code",function(e){function t(){var t=e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(t){e.focus(),e.undoManager.transact(function(){e.setContent(t.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}});t.find("#code").value(e.getContent({source_view:!0}))}e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})});
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Subscribe To Comments Reloaded ===
2
- Author: camu, reedyseth, andreasbo, raamdev
3
- Contributors: coolmann, reedyseth, raamdev
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XF86X93FDCGYA&lc=US&item_name=Datasoft%20Engineering&item_number=DI%2dSTCR&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
5
- Tags: subscribe, comments, notification, subscription, manage, double check-in, follow, commenting
6
  Requires at least: 4.0
7
- Tested up to: 4.4
8
- Stable tag: 160106
9
 
10
  Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies.
11
 
@@ -22,8 +22,9 @@ Subscribe to Comments Reloaded is a robust plugin that enables commenters to sig
22
  * Easily manage and search among your subscriptions
23
  * Imports Mark Jaquith's Subscribe To Comments (and its clones) data
24
  * Imports comments from Comment Reply Notification plugin
25
- * Messages are fully customizable, no poEdit required (and you can use HTML!)
26
  * Disable subscriptions for specific posts
 
27
  * Compatible with [Fluency Admin](http://deanjrobinson.com/projects/fluency-admin/) and [QTranslate](http://wordpress.org/extend/plugins/qtranslate/)
28
 
29
  == Installation ==
@@ -69,11 +70,15 @@ Just go to the Options Panel and click the generate button. By generating a new
69
  1. Manage your subscriptions
70
  2. Use your own messages to interact with your users
71
  3. Configure the Virtual Management page
72
- 4. Customize the notification messages
73
  5. Customize the plugin's behavior
74
 
75
  == Upgrade Notice ==
76
 
 
 
 
 
77
  == v160106 ==
78
 
79
  This version is a mayor version change on StCR. It includes many changes and features like One Click Unsubscribe, A Rich editor for the notifications templates, Subscription Checkbox position, Huge code refactor just to mention a few.
@@ -110,6 +115,11 @@ v1410124 Fixed several issues reported on the support forum like broken links, r
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
113
  = v160106 =
114
 
115
  * **Fix** The correct calling to the update function when a new version is available.
@@ -133,7 +143,6 @@ v1410124 Fixed several issues reported on the support forum like broken links, r
133
  * **Update** Panel Messages. Add new Support panel and move the support information from panel6.php to panel7.php on the StCR Settings.
134
  * **Update** transalation references on new German Translation file provided by @maffi91 and @konus1. See issue#114 and [issue#135](https://github.com/stcr/subscribe-to-comments-reloaded/issues/135).
135
  * **Update** Various notice style and spelling improvements. See [issue#135](https://github.com/stcr/subscribe-to-comments-reloaded/issues/135)
136
- * **Remove** Manager Page translation support for WPML by @IvanRF.
137
 
138
  = v150820 =
139
 
1
  === Subscribe To Comments Reloaded ===
2
+ Author: reedyseth, andreasbo, raamdev, camu
3
+ Contributors: reedyseth, raamdev, coolmann
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XF86X93FDCGYA&lc=US&item_name=Datasoft%20Engineering&item_number=DI%2dSTCR&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
5
+ Tags: comments, subscribe, comment subscription, comment subscriptions, comment subscribe, subscribe comments, comment, comment email, comment notification, notifications, notification, email, notify, posts, subscription, subscribe to comments reloaded, commenting, reply, subscribe form, comments, mail, mailing, subscriptions, newsletter, newsletters, email newsletter, email subscription, newsletter signup, post notification, newsletter alert, automatic post notification, email newsletters, email signup, auto post notifications, newsletter plugin, emailing, email commenting, engagement, invite, invitations
6
  Requires at least: 4.0
7
+ Tested up to: 4.4.1
8
+ Stable tag: 160115
9
 
10
  Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies.
11
 
22
  * Easily manage and search among your subscriptions
23
  * Imports Mark Jaquith's Subscribe To Comments (and its clones) data
24
  * Imports comments from Comment Reply Notification plugin
25
+ * Messages are fully customizable, no poEdit required (and you can use HTML!) with a Rich Text Editor - WYSIWYG
26
  * Disable subscriptions for specific posts
27
+ * One Click Unsubscribe
28
  * Compatible with [Fluency Admin](http://deanjrobinson.com/projects/fluency-admin/) and [QTranslate](http://wordpress.org/extend/plugins/qtranslate/)
29
 
30
  == Installation ==
70
  1. Manage your subscriptions
71
  2. Use your own messages to interact with your users
72
  3. Configure the Virtual Management page
73
+ 4. Customize the notification messages with a wonderful Rich Text Editor - WYSIWYG
74
  5. Customize the plugin's behavior
75
 
76
  == Upgrade Notice ==
77
 
78
+ == v160115 ==
79
+
80
+ **Subscription broken Fix; PLEASE UPGRADE IMMEDIATELY**. This fixes the broken links while trying to subscribe without commenting.
81
+
82
  == v160106 ==
83
 
84
  This version is a mayor version change on StCR. It includes many changes and features like One Click Unsubscribe, A Rich editor for the notifications templates, Subscription Checkbox position, Huge code refactor just to mention a few.
115
 
116
  == Changelog ==
117
 
118
+ = v160115 =
119
+
120
+ * **Fix** Error while calling the option to subscribe without commenting.
121
+ * **Fix** Error while deleting a subscription on the management page.
122
+
123
  = v160106 =
124
 
125
  * **Fix** The correct calling to the update function when a new version is available.
143
  * **Update** Panel Messages. Add new Support panel and move the support information from panel6.php to panel7.php on the StCR Settings.
144
  * **Update** transalation references on new German Translation file provided by @maffi91 and @konus1. See issue#114 and [issue#135](https://github.com/stcr/subscribe-to-comments-reloaded/issues/135).
145
  * **Update** Various notice style and spelling improvements. See [issue#135](https://github.com/stcr/subscribe-to-comments-reloaded/issues/135)
 
146
 
147
  = v150820 =
148
 
subscribe-to-comments-reloaded.php CHANGED
@@ -2,15 +2,15 @@
2
  /*
3
  Plugin Name: Subscribe to Comments Reloaded
4
 
5
- Version: 160106
6
- Stable tag: 160106
7
  Requires at least: 4.0
8
- Tested up to: 4.4
9
 
10
  Plugin URI: http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/
11
  Description: Subscribe to Comments Reloaded is a robust plugin that enables commenters to sign up for e-mail notifications. It includes a full-featured subscription manager that your commenters can use to unsubscribe to certain posts or suspend all notifications.
12
- Contributors: camu, reedyseth, andreasbo, raamdev
13
- Author: camu, reedyseth, Raam Dev
14
 
15
  Text Domain: subscribe-reloaded
16
  Domain Path: /langs
2
  /*
3
  Plugin Name: Subscribe to Comments Reloaded
4
 
5
+ Version: 160115
6
+ Stable tag: 160115
7
  Requires at least: 4.0
8
+ Tested up to: 4.4.1
9
 
10
  Plugin URI: http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/
11
  Description: Subscribe to Comments Reloaded is a robust plugin that enables commenters to sign up for e-mail notifications. It includes a full-featured subscription manager that your commenters can use to unsubscribe to certain posts or suspend all notifications.
12
+ Contributors: reedyseth, camu, andreasbo, raamdev
13
+ Author: reedyseth, Raam Dev, camu
14
 
15
  Text Domain: subscribe-reloaded
16
  Domain Path: /langs
templates/subscribe.php CHANGED
@@ -33,7 +33,7 @@ if ( ! empty( $email ) ) {
33
  }
34
  }
35
 
36
- $clean_email = $wp_subscribe_reloaded->stcr->clean_email( $email );
37
 
38
  // If the case, send a message to the administrator
39
  if ( get_option( 'subscribe_reloaded_enable_admin_messages', 'no' ) == 'yes' ) {
33
  }
34
  }
35
 
36
+ $clean_email = $wp_subscribe_reloaded->stcr->utils->clean_email( $email );
37
 
38
  // If the case, send a message to the administrator
39
  if ( get_option( 'subscribe_reloaded_enable_admin_messages', 'no' ) == 'yes' ) {
utils/stcr_manage.php CHANGED
@@ -3,7 +3,7 @@
3
  * Class with management functions for Subscribe to Comments Reloaded
4
  * @author reedyseth
5
  * @since 16-Jul-2015
6
- * @version 160106
7
  */
8
  namespace stcr {
9
  // Avoid direct access to this piece of code
@@ -19,7 +19,7 @@ namespace stcr {
19
  {
20
  class stcr_manage {
21
 
22
- public $current_version = '160106';
23
  public $utils = null;
24
  public $upgrade = null;
25
  public $db_version = null;
3
  * Class with management functions for Subscribe to Comments Reloaded
4
  * @author reedyseth
5
  * @since 16-Jul-2015
6
+ * @version 160115
7
  */
8
  namespace stcr {
9
  // Avoid direct access to this piece of code
19
  {
20
  class stcr_manage {
21
 
22
+ public $current_version = '160115';
23
  public $utils = null;
24
  public $upgrade = null;
25
  public $db_version = null;
utils/stcr_upgrade.php CHANGED
@@ -409,6 +409,19 @@ https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XF86X93FDCGYA&lc=U
409
  );
410
  $this->link_tags();
411
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
412
  }
413
  }
414
 
409
  );
410
  $this->link_tags();
411
  break;
412
+ case '160115':
413
+ $this->stcr_create_admin_notice(
414
+ 'notify_update_' . $_version,
415
+ 'unread',
416
+ '<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160115.', 'subscribe-reloaded') . '</p>' .
417
+ '<p>' . __('This version includes fixes to broken links while managing your subscriptions', 'subscribe-reloaded') . '</p>' .
418
+ '<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
419
+ . '<a class="dismiss" href="#">Got it. </a>'
420
+ . '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-reloaded') . '</p>',
421
+ 'updated'
422
+ );
423
+ $this->link_tags();
424
+ break;
425
  }
426
  }
427
 
wp_subscribe_reloaded.php CHANGED
@@ -611,7 +611,7 @@ namespace stcr {
611
  }
612
  } else {
613
  foreach ( $_email as $a_email ) {
614
- $emails_where .= "meta_key = '_stcr@_" . $this->clean_email( $a_email ) . "' OR ";
615
  // Deletion on every email on the subscribers table.
616
  $has_subscriptions = $this->retrieve_user_subscriptions( $_post_id, $a_email );
617
  if( $has_subscriptions === false ) {
611
  }
612
  } else {
613
  foreach ( $_email as $a_email ) {
614
+ $emails_where .= "meta_key = '_stcr@_" . $this->utils->clean_email( $a_email ) . "' OR ";
615
  // Deletion on every email on the subscribers table.
616
  $has_subscriptions = $this->retrieve_user_subscriptions( $_post_id, $a_email );
617
  if( $has_subscriptions === false ) {