Subscribe To Comments Reloaded - Version 210315

Version Description

Download this release

Release Info

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

Code changes from version 210126 to 210315

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.6
10
- Stable tag: 210126
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -95,6 +95,12 @@ Just go to the Options Panel and click the generate button. By generating a new
95
  7. Manage the subscriptions on the Frontend Side.
96
 
97
  == Changelog ==
 
 
 
 
 
 
98
  = v210126 =
99
  * **New** Option to disable the "subscribe without commenting" and "request management link" pages. ( WP Admin > StCR > Management Page )
100
 
6
  Requires at least: 4.0
7
  Requires PHP: 5.6
8
  Requires MySQL: 5.6
9
+ Tested up to: 5.8
10
+ Stable tag: 210315
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
95
  7. Manage the subscriptions on the Frontend Side.
96
 
97
  == Changelog ==
98
+ = v210315 =
99
+ * **Fix** Removed the "need help" added via "contextual_help" (deprecated)
100
+ * **Fix** PHP 8 deprecated notice
101
+ * **Fix** Fix issue with missing submit button when using "stcr_disable_subscription" custom field
102
+ * **Tweak** Bump up WP "tested up to" version to 5.7
103
+
104
  = v210126 =
105
  * **New** Option to disable the "subscribe without commenting" and "request management link" pages. ( WP Admin > StCR > Management Page )
106
 
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: 210126
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: 210315
6
  * Author: WPKube
7
  * Author URI: http://wpkube.com/
8
  * License: GPL-2.0+
utils/stcr_manage.php CHANGED
@@ -722,20 +722,6 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
722
  }
723
  // end add_column
724
 
725
- /**
726
- * Contextual help (link to the support forum)
727
- * @deprecated
728
- */
729
- public function contextual_help( $contextual_help, $screen_id, $screen ) {
730
- if ( $screen_id == 'subscribe-to-comments-reloaded/options/index' ) {
731
- load_plugin_textdomain( 'subscribe-to-comments-reloaded', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
732
- $contextual_help = __( 'Need help on how to use Subscribe to Comments Reloaded? Visit the official', 'subscribe-to-comments-reloaded' ) . ' <a href="http://wordpress.org/tags/subscribe-to-comments-reloaded?forum_id=10" target="_blank">' . __( 'support forum', 'subscribe-to-comments-reloaded' ) . '</a>. ';
733
- }
734
-
735
- return $contextual_help;
736
- }
737
- // end contextual_help
738
-
739
  /**
740
  * Returns the URL of the management page as a shortcode
741
  */
722
  }
723
  // end add_column
724
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
725
  /**
726
  * Returns the URL of the management page as a shortcode
727
  */
wp_subscribe_reloaded.php CHANGED
@@ -8,7 +8,7 @@ if ( ! function_exists( 'add_action' ) ) {
8
  }
9
 
10
  // globals
11
- define( __NAMESPACE__.'\\VERSION','210126' );
12
  define( __NAMESPACE__.'\\DEVELOPMENT', false );
13
  define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
14
 
@@ -101,7 +101,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
101
  *
102
  * @since 190705
103
  */
104
- public function add_test_subscriptions( $iterations = 1 ,$post_id, $status = 'Y', $email_prefix = 'dev', $last_id_subs = 0 ) {
105
  for ( $i = $last_id_subs+1; $i <= $iterations; $i++) {
106
  $this->add_subscription( $post_id, "{$email_prefix}_{$i}" . time() . "@dev.com", $status );
107
  }
@@ -196,9 +196,6 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
196
  // admin notices
197
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
198
 
199
- // contextual help
200
- add_action( 'contextual_help', array( $this, 'contextual_help' ), 10, 3 );
201
-
202
  // shortcodes to use the management URL sitewide
203
  add_shortcode( 'subscribe-url', array( $this, 'subscribe_url_shortcode' ) );
204
 
@@ -1534,7 +1531,12 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
1534
  // return if subscriptions disabled for this post
1535
  $is_disabled = get_post_meta( $post->ID, 'stcr_disable_subscriptions', true );
1536
  if ( ! empty( $is_disabled ) ) {
1537
- return $_comment_ID;
 
 
 
 
 
1538
  }
1539
 
1540
  // vars
8
  }
9
 
10
  // globals
11
+ define( __NAMESPACE__.'\\VERSION','210315' );
12
  define( __NAMESPACE__.'\\DEVELOPMENT', false );
13
  define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
14
 
101
  *
102
  * @since 190705
103
  */
104
+ public function add_test_subscriptions( $iterations, $post_id, $status = 'Y', $email_prefix = 'dev', $last_id_subs = 0 ) {
105
  for ( $i = $last_id_subs+1; $i <= $iterations; $i++) {
106
  $this->add_subscription( $post_id, "{$email_prefix}_{$i}" . time() . "@dev.com", $status );
107
  }
196
  // admin notices
197
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
198
 
 
 
 
199
  // shortcodes to use the management URL sitewide
200
  add_shortcode( 'subscribe-url', array( $this, 'subscribe_url_shortcode' ) );
201
 
1531
  // return if subscriptions disabled for this post
1532
  $is_disabled = get_post_meta( $post->ID, 'stcr_disable_subscriptions', true );
1533
  if ( ! empty( $is_disabled ) ) {
1534
+ if ( $echo ) {
1535
+ echo $submit_field;
1536
+ } else {
1537
+ return $submit_field;
1538
+ }
1539
+ return;
1540
  }
1541
 
1542
  // vars