Subscribe To Comments Reloaded - Version 191028

Version Description

Download this release

Release Info

Developer wpkube
Plugin Icon 128x128 Subscribe To Comments Reloaded
Version 191028
Comparing to
See all releases

Code changes from version 191011 to 191028

options/stcr_comment_form.php CHANGED
@@ -174,7 +174,7 @@ if ( isset( $_POST['options'] ) ) {
174
</div>
175
<?php
176
else :
177
- echo "<input type='hidden' name='options[checked_by_default_value]' value = '0'>";
178
endif; ?>
179
180
<div class="form-group row">
174
</div>
175
<?php
176
else :
177
+ echo "<input type='hidden' name='options[default_subscription_type]' value = '0'>";
178
endif; ?>
179
180
<div class="form-group row">
options/stcr_notifications.php CHANGED
@@ -231,7 +231,15 @@ wp_print_scripts( 'quicktags' );
231
</div>
232
</div>
233
</div>
234
-
235
<div class="form-group row">
236
<label for="management_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
237
<?php _e( 'Management Page message', 'subscribe-to-comments-reloaded' ) ?>
@@ -242,10 +250,19 @@ wp_print_scripts( 'quicktags' );
242
aria-label="<?php _e( "Content of the management Page message. Allowed tags: [blog_name].", 'subscribe-to-comments-reloaded' ); ?>">
243
<i class="fas fa-question-circle"></i>
244
</div>
245
-
246
</label>
247
<div class="clearfix"></div>
248
- <div class="col-sm-9 offset-sm-1" style="margin-top: -30px;">
249
<?php
250
$id_management_content = "management_content";
251
$args_notificationContent = array(
231
</div>
232
</div>
233
</div>
234
+
235
+ <?php
236
+ $disallowed_tags = array();
237
+ $management_page_message = $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'management_content' );
238
+ if ( empty( $management_page_message ) ) { $management_page_message = ''; }
239
+ if ( strpos( $management_page_message, '[manager_link]' ) ) {
240
+ $disallowed_tags['manager_link'] = __( '[manager_link] tag only works for "Management Email message". It is a private link that takes to a management page and for security reasons has to be sent to the email address.', 'subscribe-to-comments-reloaded' );
241
+ }
242
+ ?>
243
<div class="form-group row">
244
<label for="management_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
245
<?php _e( 'Management Page message', 'subscribe-to-comments-reloaded' ) ?>
250
aria-label="<?php _e( "Content of the management Page message. Allowed tags: [blog_name].", 'subscribe-to-comments-reloaded' ); ?>">
251
<i class="fas fa-question-circle"></i>
252
</div>
253
</label>
254
<div class="clearfix"></div>
255
+ <div class="col-sm-9 offset-sm-1" <?php if ( empty( $disallowed_tags ) ) { echo 'style="margin-top:-30px;"'; } ?>>
256
+
257
+ <?php if ( ! empty( $disallowed_tags ) ) : ?>
258
+ <p class="notice notice-error" style="margin: 0;padding:8px;">
259
+ <?php foreach ( $disallowed_tags as $disallowed_tag_id => $disallowed_tag_message ) : ?>
260
+ <?php echo $disallowed_tag_message; ?>
261
+ <?php endforeach; ?>
262
+ </ul>
263
+ </p>
264
+ <?php endif; ?>
265
+
266
<?php
267
$id_management_content = "management_content";
268
$args_notificationContent = array(
readme.txt CHANGED
@@ -7,7 +7,7 @@ Requires at least: 4.0
7
Requires PHP: 5.6
8
Requires MySQL: 5.6
9
Tested up to: 5.2
10
- Stable tag: 191011
11
License: GPLv2 or later
12
License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
@@ -100,6 +100,11 @@ Just go to the Options Panel and click the generate button. By generating a new
100
101
== Changelog ==
102
103
= v191011 =
104
* **Fix** Revert changes to error logging due to PHP errors/warnings
105
7
Requires PHP: 5.6
8
Requires MySQL: 5.6
9
Tested up to: 5.2
10
+ Stable tag: 191028
11
License: GPLv2 or later
12
License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
100
101
== Changelog ==
102
103
+ = v191028 =
104
+ * **Fix** Issue with "Default Checkbox Value" not being saved
105
+ * **Fix** Issue with /comment-subscriptions taking to 404 ( when it does not end with / )
106
+ * **Tweak** Error notification when [manager_link] used in "Management Page message".
107
+
108
= v191011 =
109
* **Fix** Revert changes to error logging due to PHP errors/warnings
110
subscribe-to-comments-reloaded.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Plugin Name: Subscribe to Comments Reloaded
4
* 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.
5
- * Version: 191011
6
* Author: WPKube
7
* Author URI: http://wpkube.com/
8
* License: GPL-2.0+
2
/**
3
* Plugin Name: Subscribe to Comments Reloaded
4
* 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.
5
+ * Version: 191028
6
* Author: WPKube
7
* Author URI: http://wpkube.com/
8
* License: GPL-2.0+
wp_subscribe_reloaded.php CHANGED
@@ -8,7 +8,7 @@ if ( ! function_exists( 'add_action' ) ) {
8
}
9
10
// globals
11
- define( __NAMESPACE__.'\\VERSION','191011' );
12
define( __NAMESPACE__.'\\DEVELOPMENT', false );
13
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
14
@@ -131,6 +131,9 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
131
if ( empty( $manager_page_permalink ) ) {
132
$manager_page_permalink = '/comment-subscriptions/';
133
}
134
135
// if we are on the management page, filter the_posts
136
if ( ( strpos( $_SERVER["REQUEST_URI"], $manager_page_permalink ) !== false ) ) {
8
}
9
10
// globals
11
+ define( __NAMESPACE__.'\\VERSION','191028' );
12
define( __NAMESPACE__.'\\DEVELOPMENT', false );
13
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
14
131
if ( empty( $manager_page_permalink ) ) {
132
$manager_page_permalink = '/comment-subscriptions/';
133
}
134
+
135
+ // remove the ending slash so both variations (with and without slash) work in the strpos check below
136
+ $manager_page_permalink = rtrim( $manager_page_permalink, '/' );
137
138
// if we are on the management page, filter the_posts
139
if ( ( strpos( $_SERVER["REQUEST_URI"], $manager_page_permalink ) !== false ) ) {