Version Description
Download this release
Release Info
Developer | wpkube |
Plugin | Subscribe To Comments Reloaded |
Version | 191209 |
Comparing to | |
See all releases |
Code changes from version 191028 to 191209
options/stcr_manage_subscriptions.php
CHANGED
@@ -154,11 +154,32 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
|
|
154 |
|
155 |
<h4><i class="fas fa-search"></i> <?php _e( 'Search subscriptions', 'subscribe-to-comments-reloaded' ) ?></h4>
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
<div class="col-md-2 subs-spinner mx-auto"><h5><?php _e( "Loading", 'subscribe-to-comments-reloaded'); ?> <i class="fas fa-play-circle"></i></h5></div>
|
158 |
|
159 |
<div class="clearfix"></div>
|
160 |
|
161 |
-
<form action="" method="post" id="subscription_form" name="subscription_form"
|
162 |
onsubmit="if(this.sra[0].checked) return confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) ?>')">
|
163 |
|
164 |
<?php
|
154 |
|
155 |
<h4><i class="fas fa-search"></i> <?php _e( 'Search subscriptions', 'subscribe-to-comments-reloaded' ) ?></h4>
|
156 |
|
157 |
+
<?php if ( ! empty( $_POST['srv'] ) || ( is_array( $subscriptions ) && count( $subscriptions ) == 1000 ) ) : ?>
|
158 |
+
|
159 |
+
<?php
|
160 |
+
$search_term = '';
|
161 |
+
if ( ! empty( $_POST['srv'] ) ) {
|
162 |
+
$search_term = sanitize_text_field( $_POST['srv'] );
|
163 |
+
}
|
164 |
+
?>
|
165 |
+
<form action="" method="post" style="background: #f5f5f5; padding: 15px; margin-top: 20px;">
|
166 |
+
<p>
|
167 |
+
<strong><?php esc_html_e( 'The table below is limited to loading 1000 latest subscriptions.', 'subscribe-to-comments-reloaded' ); ?></strong>
|
168 |
+
<br><?php esc_html_e( 'You have more than that, if you need to find an older subscription just enter a search term ( full email, partial email, post ID...) below.', 'subscribe-to-comments-reloaded' ); ?>
|
169 |
+
</p>
|
170 |
+
<p>
|
171 |
+
<input type="text" name="srv" placeholder="<?php esc_attr_e( 'Enter search term', 'subscribe-to-comments-reloaded' ); ?>" value="<?php echo esc_attr( $search_term ); ?>">
|
172 |
+
<input type="submit" class="button button-primary">
|
173 |
+
</p>
|
174 |
+
</form>
|
175 |
+
|
176 |
+
<?php endif; ?>
|
177 |
+
|
178 |
<div class="col-md-2 subs-spinner mx-auto"><h5><?php _e( "Loading", 'subscribe-to-comments-reloaded'); ?> <i class="fas fa-play-circle"></i></h5></div>
|
179 |
|
180 |
<div class="clearfix"></div>
|
181 |
|
182 |
+
<form style="border: 1px solid #eee; padding: 15px; margin-top: 20px;" action="" method="post" id="subscription_form" name="subscription_form"
|
183 |
onsubmit="if(this.sra[0].checked) return confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) ?>')">
|
184 |
|
185 |
<?php
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ Plugin URI: http://subscribe-reloaded.com/
|
|
6 |
Requires at least: 4.0
|
7 |
Requires PHP: 5.6
|
8 |
Requires MySQL: 5.6
|
9 |
-
Tested up to: 5.
|
10 |
-
Stable tag:
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -99,6 +99,9 @@ Just go to the Options Panel and click the generate button. By generating a new
|
|
99 |
7. Manage the subscriptions on the Frontend Side.
|
100 |
|
101 |
== Changelog ==
|
|
|
|
|
|
|
102 |
|
103 |
= v191028 =
|
104 |
* **Fix** Issue with "Default Checkbox Value" not being saved
|
6 |
Requires at least: 4.0
|
7 |
Requires PHP: 5.6
|
8 |
Requires MySQL: 5.6
|
9 |
+
Tested up to: 5.3
|
10 |
+
Stable tag: 191209
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
99 |
7. Manage the subscriptions on the Frontend Side.
|
100 |
|
101 |
== Changelog ==
|
102 |
+
= v191209 =
|
103 |
+
* **Improvement** Logged in users no longer need to submit the "email" form on a subscription page in order to access their subscriptions
|
104 |
+
* **Improvement** Ability to filter/search the subscriptions table ( WP admin > StCR > Manage Subscriptions ) when there are more than 1000 subscriptions
|
105 |
|
106 |
= v191028 =
|
107 |
* **Fix** Issue with "Default Checkbox Value" not being saved
|
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:
|
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: 191209
|
6 |
* Author: WPKube
|
7 |
* Author URI: http://wpkube.com/
|
8 |
* License: GPL-2.0+
|
templates/request-management-link.php
CHANGED
@@ -29,7 +29,7 @@ if ( array_key_exists('post_permalink', $_GET ) ) {
|
|
29 |
// start output buffering
|
30 |
ob_start();
|
31 |
|
32 |
-
// email address
|
33 |
if ( ! empty( $email ) ) {
|
34 |
|
35 |
$stcr_post_email = $wp_subscribe_reloaded->stcr->utils->check_valid_email( $email );
|
@@ -88,7 +88,7 @@ if ( ! empty( $email ) ) {
|
|
88 |
|
89 |
}
|
90 |
|
91 |
-
// email address supplied
|
92 |
} else {
|
93 |
|
94 |
$message = html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_request_mgmt_link' ) ), ENT_QUOTES, 'UTF-8' );
|
29 |
// start output buffering
|
30 |
ob_start();
|
31 |
|
32 |
+
// email address supplied
|
33 |
if ( ! empty( $email ) ) {
|
34 |
|
35 |
$stcr_post_email = $wp_subscribe_reloaded->stcr->utils->check_valid_email( $email );
|
88 |
|
89 |
}
|
90 |
|
91 |
+
// email address not supplied
|
92 |
} else {
|
93 |
|
94 |
$message = html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_request_mgmt_link' ) ), ENT_QUOTES, 'UTF-8' );
|
wp_subscribe_reloaded.php
CHANGED
@@ -8,7 +8,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
8 |
}
|
9 |
|
10 |
// globals
|
11 |
-
define( __NAMESPACE__.'\\VERSION','
|
12 |
define( __NAMESPACE__.'\\DEVELOPMENT', false );
|
13 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
14 |
|
@@ -82,7 +82,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
|
|
82 |
|
83 |
// add subscriptions for tests
|
84 |
if ( DEVELOPMENT ) {
|
85 |
-
$this->add_test_subscriptions(
|
86 |
}
|
87 |
|
88 |
// management page shortcode
|
@@ -97,7 +97,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
|
|
97 |
*/
|
98 |
public function add_test_subscriptions( $iterations = 1 ,$post_id, $status = 'Y', $email_prefix = 'dev', $last_id_subs = 0 ) {
|
99 |
for ( $i = $last_id_subs+1; $i <= $iterations; $i++) {
|
100 |
-
$this->add_subscription( $post_id, "{$email_prefix}_{$i}@dev.com", $status );
|
101 |
}
|
102 |
}
|
103 |
|
@@ -713,7 +713,12 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
|
|
713 |
// vars
|
714 |
$action = !empty($_POST['sra']) ? $_POST['sra'] : (!empty($_GET['sra']) ? $_GET['sra'] : 0);
|
715 |
$key = !empty($_POST['srk']) ? $_POST['srk'] : (!empty($_GET['srk']) ? $_GET['srk'] : 0);
|
|
|
716 |
$sre = !empty($_POST['sre']) ? $_POST['sre'] : (!empty($_GET['sre']) ? $_GET['sre'] : '');
|
|
|
|
|
|
|
|
|
717 |
$srek = !empty($_POST['srek']) ? $_POST['srek'] : (!empty($_GET['srek']) ? $_GET['srek'] : '');
|
718 |
$link_source = !empty($_POST['srsrc']) ? $_POST['srsrc'] : (!empty($_GET['srsrc']) ? $_GET['srsrc'] : '');
|
719 |
$key_expired = !empty($_POST['key_expired']) ? $_POST['key_expired'] : (!empty($_GET['key_expired']) ? $_GET['key_expired'] : '0');
|
8 |
}
|
9 |
|
10 |
// globals
|
11 |
+
define( __NAMESPACE__.'\\VERSION','191209' );
|
12 |
define( __NAMESPACE__.'\\DEVELOPMENT', false );
|
13 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
14 |
|
82 |
|
83 |
// add subscriptions for tests
|
84 |
if ( DEVELOPMENT ) {
|
85 |
+
$this->add_test_subscriptions( 1000, 18,'Y', 'dev', 30);
|
86 |
}
|
87 |
|
88 |
// management page shortcode
|
97 |
*/
|
98 |
public function add_test_subscriptions( $iterations = 1 ,$post_id, $status = 'Y', $email_prefix = 'dev', $last_id_subs = 0 ) {
|
99 |
for ( $i = $last_id_subs+1; $i <= $iterations; $i++) {
|
100 |
+
$this->add_subscription( $post_id, "{$email_prefix}_{$i}" . time() . "@dev.com", $status );
|
101 |
}
|
102 |
}
|
103 |
|
713 |
// vars
|
714 |
$action = !empty($_POST['sra']) ? $_POST['sra'] : (!empty($_GET['sra']) ? $_GET['sra'] : 0);
|
715 |
$key = !empty($_POST['srk']) ? $_POST['srk'] : (!empty($_GET['srk']) ? $_GET['srk'] : 0);
|
716 |
+
|
717 |
$sre = !empty($_POST['sre']) ? $_POST['sre'] : (!empty($_GET['sre']) ? $_GET['sre'] : '');
|
718 |
+
if ( is_user_logged_in() ) {
|
719 |
+
$sre = $current_user->data->user_email;
|
720 |
+
}
|
721 |
+
|
722 |
$srek = !empty($_POST['srek']) ? $_POST['srek'] : (!empty($_GET['srek']) ? $_GET['srek'] : '');
|
723 |
$link_source = !empty($_POST['srsrc']) ? $_POST['srsrc'] : (!empty($_GET['srsrc']) ? $_GET['srsrc'] : '');
|
724 |
$key_expired = !empty($_POST['key_expired']) ? $_POST['key_expired'] : (!empty($_GET['key_expired']) ? $_GET['key_expired'] : '0');
|