Version Description
Download this release
Release Info
Developer | wpkube |
Plugin | Subscribe To Comments Reloaded |
Version | 191011 |
Comparing to | |
See all releases |
Code changes from version 191009 to 191011
- readme.txt +4 -1
- subscribe-to-comments-reloaded.php +1 -1
- utils/stcr_utils.php +8 -29
- wp_subscribe_reloaded.php +1 -1
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:
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -100,6 +100,9 @@ Just go to the Options Panel and click the generate button. By generating a new
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
103 |
= v191009 =
|
104 |
* **Fix** Issue with post slug being displayed instead of the post title on unsubscribe
|
105 |
* **Fix** HTML validation error in subscribe template
|
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 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= v191011 =
|
104 |
+
* **Fix** Revert changes to error logging due to PHP errors/warnings
|
105 |
+
|
106 |
= v191009 =
|
107 |
* **Fix** Issue with post slug being displayed instead of the post title on unsubscribe
|
108 |
* **Fix** HTML validation error in subscribe template
|
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: 191011
|
6 |
* Author: WPKube
|
7 |
* Author URI: http://wpkube.com/
|
8 |
* License: GPL-2.0+
|
utils/stcr_utils.php
CHANGED
@@ -20,10 +20,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
20 |
|
21 |
public function __construct()
|
22 |
{
|
23 |
-
|
24 |
-
{
|
25 |
-
set_error_handler( array( $this, 'exceptions_error_handler' ) );
|
26 |
-
}
|
27 |
}
|
28 |
|
29 |
public function __destruct()
|
@@ -869,26 +866,6 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
869 |
{
|
870 |
return is_admin();
|
871 |
}
|
872 |
-
|
873 |
-
/**
|
874 |
-
* Get path to log-path, or null if we can't write
|
875 |
-
*
|
876 |
-
* @since 01-Aug-2019
|
877 |
-
*
|
878 |
-
*/
|
879 |
-
public function stcr_get_log_path()
|
880 |
-
{
|
881 |
-
$loggin_info = get_option("subscribe_reloaded_enable_log_data", "no");
|
882 |
-
if ( $loggin_info != "yes" )
|
883 |
-
return null;
|
884 |
-
|
885 |
-
$file_path = plugin_dir_path( __FILE__ );
|
886 |
-
if ( !is_writable( $file_path ))
|
887 |
-
return null;
|
888 |
-
|
889 |
-
return $file_path .'/log.txt';
|
890 |
-
}
|
891 |
-
|
892 |
/**
|
893 |
* Function to log messages into a given file. The variable $file_path must have writing permissions.
|
894 |
*
|
@@ -898,11 +875,13 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
898 |
*/
|
899 |
public function stcr_logger( $value = '' )
|
900 |
{
|
901 |
-
$file_path =
|
902 |
-
|
903 |
-
|
|
|
|
|
904 |
{
|
905 |
-
$file = fopen( $file_path, "a" );
|
906 |
|
907 |
fputs( $file , $value);
|
908 |
|
@@ -914,4 +893,4 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
914 |
// }
|
915 |
}
|
916 |
}
|
917 |
-
}
|
20 |
|
21 |
public function __construct()
|
22 |
{
|
23 |
+
set_error_handler( array( $this, 'exceptions_error_handler' ) );
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
public function __destruct()
|
866 |
{
|
867 |
return is_admin();
|
868 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
869 |
/**
|
870 |
* Function to log messages into a given file. The variable $file_path must have writing permissions.
|
871 |
*
|
875 |
*/
|
876 |
public function stcr_logger( $value = '' )
|
877 |
{
|
878 |
+
$file_path = plugin_dir_path( __FILE__ );
|
879 |
+
$file_name = "log.txt";
|
880 |
+
$loggin_info = get_option("subscribe_reloaded_enable_log_data", "no");
|
881 |
+
|
882 |
+
if( is_writable( $file_path ) && $loggin_info === "yes")
|
883 |
{
|
884 |
+
$file = fopen( $file_path . "/" . $file_name, "a" );
|
885 |
|
886 |
fputs( $file , $value);
|
887 |
|
893 |
// }
|
894 |
}
|
895 |
}
|
896 |
+
}
|
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 |
|
8 |
}
|
9 |
|
10 |
// globals
|
11 |
+
define( __NAMESPACE__.'\\VERSION','191011' );
|
12 |
define( __NAMESPACE__.'\\DEVELOPMENT', false );
|
13 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
14 |
|