Subscribe To Comments Reloaded - Version 211130

Version Description

Download this release

Release Info

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

Code changes from version 211019 to 211130

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.8
10
- Stable tag: 211019
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -95,6 +95,10 @@ 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
  = v211019 =
99
  * **Fix** Issue with STCR output on non-virtual management page
100
 
7
  Requires PHP: 5.6
8
  Requires MySQL: 5.6
9
  Tested up to: 5.8
10
+ Stable tag: 211130
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
+ = v211130 =
99
+ * **Fix** Removed custom error handler (thanks to JakeQZ for bringing the issue to our attention)
100
+ * **Fix** Processing form submission in subscribe.php is now stopped in case "subscribe without commenting" is enabled
101
+
102
  = v211019 =
103
  * **Fix** Issue with STCR output on non-virtual management page
104
 
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: 211019
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: 211130
6
  * Author: WPKube
7
  * Author URI: http://wpkube.com/
8
  * License: GPL-2.0+
templates/subscribe.php CHANGED
@@ -20,6 +20,10 @@ $use_captcha = get_option( 'subscribe_reloaded_use_captcha', 'no' );
20
  $captcha_site_key = get_option( 'subscribe_reloaded_captcha_site_key', '' );
21
  $captcha_secret_key = get_option( 'subscribe_reloaded_captcha_secret_key', '' );
22
 
 
 
 
 
23
  // google recaptcha confirm
24
  if ( $use_captcha == 'yes' ) {
25
  $captcha_output .= '<div class="g-recaptcha" data-sitekey="' . $captcha_site_key . '"></div>';
20
  $captcha_site_key = get_option( 'subscribe_reloaded_captcha_site_key', '' );
21
  $captcha_secret_key = get_option( 'subscribe_reloaded_captcha_secret_key', '' );
22
 
23
+ if ( get_option( 'subscribe_reloaded_allow_subscribe_without_comment', 'yes' ) != 'yes' ) {
24
+ exit;
25
+ }
26
+
27
  // google recaptcha confirm
28
  if ( $use_captcha == 'yes' ) {
29
  $captcha_output .= '<div class="g-recaptcha" data-sitekey="' . $captcha_site_key . '"></div>';
utils/stcr_utils.php CHANGED
@@ -20,7 +20,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
20
 
21
  public function __construct()
22
  {
23
- set_error_handler( array( $this, 'exceptions_error_handler' ) );
24
  }
25
 
26
  public function __destruct()
@@ -444,30 +444,6 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
444
  wp_enqueue_script( $handle );
445
  }
446
 
447
- /**
448
- *
449
- *
450
- * @since
451
- * @author Israel Barragan (Reedyseth)
452
- *
453
- * @param $severity
454
- * @param $message
455
- * @param $filename
456
- * @param $lineno
457
- */
458
- function exceptions_error_handler($severity, $message, $filename, $lineno)
459
- {
460
- $date = date_i18n( 'Y-m-d H:i:s' );
461
- // We don't want to break things out, so instead we add the error information to
462
- // the log file, thus allowing us to help more on the debug / error / support of StCR.
463
- $this->stcr_logger("\n [ERROR][$date] - An error occur, here is the detail information\n");
464
- $this->stcr_logger(" [ERROR][SEVERITY] - $severity\n");
465
- $this->stcr_logger(" [ERROR][MESSAGE] - $message\n");
466
- $this->stcr_logger(" [ERROR][FILENAME] - $filename\n");
467
- $this->stcr_logger(" [ERROR][LINE NUMBER] - $lineno\n\n");
468
-
469
- // throw new \ErrorException($message, 0, $severity,$filename, $lineno);
470
- }
471
  /**
472
  * Will send an email by adding the correct headers.
473
  *
@@ -923,10 +899,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
923
 
924
  fclose($file);
925
  }
926
- // else
927
- // {
928
- // throw new \Exception("The path $file_path is not writable, please check the folder Permissions.", 1);
929
- // }
930
  }
931
  }
932
  }
20
 
21
  public function __construct()
22
  {
23
+
24
  }
25
 
26
  public function __destruct()
444
  wp_enqueue_script( $handle );
445
  }
446
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
447
  /**
448
  * Will send an email by adding the correct headers.
449
  *
899
 
900
  fclose($file);
901
  }
902
+
 
 
 
903
  }
904
  }
905
  }
wp_subscribe_reloaded.php CHANGED
@@ -8,7 +8,7 @@ if ( ! function_exists( 'add_action' ) ) {
8
  }
9
 
10
  // globals
11
- define( __NAMESPACE__.'\\VERSION','211019' );
12
  define( __NAMESPACE__.'\\DEVELOPMENT', false );
13
  define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
14
 
8
  }
9
 
10
  // globals
11
+ define( __NAMESPACE__.'\\VERSION','211130' );
12
  define( __NAMESPACE__.'\\DEVELOPMENT', false );
13
  define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
14