Subscribe To Comments Reloaded - Version 190411

Version Description

Download this release

Release Info

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

Code changes from version 190409 to 190411

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.1
10
- Stable tag: 190409
11
License: GPLv2 or later
12
License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
@@ -100,6 +100,10 @@ Just go to the Options Panel and click the generate button. By generating a new
100
101
== Changelog ==
102
103
= v190409 =
104
105
* **Fix** Post author was notified of new comments even if they are awaiting approval, no need for this since WordPress itself sends out an email in that case
7
Requires PHP: 5.6
8
Requires MySQL: 5.6
9
Tested up to: 5.1
10
+ Stable tag: 190411
11
License: GPLv2 or later
12
License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
100
101
== Changelog ==
102
103
+ = v190411 =
104
+
105
+ * **Fix** Issue with JavaScript code that is supposed to show the form when "StCR Position" is enabled
106
+
107
= v190409 =
108
109
* **Fix** Post author was notified of new comments even if they are awaiting approval, no need for this since WordPress itself sends out an email in that case
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: 190409
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: 190411
6
* Author: WPKube
7
* Author URI: http://wpkube.com/
8
* License: GPL-2.0+
utils/download.php DELETED
@@ -1,33 +0,0 @@
1
- <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: reedyseth
5
- * Date: 12/8/18
6
- * Time: 12:16 AM
7
- */
8
-
9
- require_once( $_SERVER["DOCUMENT_ROOT"] . "/wp-load.php");
10
-
11
- // Avoid direct access to this piece of code
12
- if ( ! function_exists( 'add_action' ) ) {
13
- header( 'Location: /' );
14
- exit;
15
- }
16
- // Check that is a WordPress Admin, otherwise reject request.
17
- if ( current_user_can( 'manage_options' ) ) {
18
- $fileName = isset($_GET['name']) ? $_GET['name'] : die("<h1>Incorrect header information</h1>");
19
- $fileName = esc_attr( $fileName );
20
-
21
- header('Content-type: text/plain');
22
-
23
- header('Content-Disposition: attachment; filename="'. $fileName .'.txt"');
24
-
25
- readfile("{$fileName}.txt");
26
-
27
- unlink( "{$fileName}.txt" ); // Clean house
28
- }
29
- else
30
- {
31
- echo ""; // Silence is Golden.
32
- }
33
-
wp_subscribe_reloaded.php CHANGED
@@ -6,7 +6,7 @@ if ( ! function_exists( 'add_action' ) ) {
6
exit;
7
}
8
9
- define( __NAMESPACE__.'\\VERSION','190409' );
10
define( __NAMESPACE__.'\\DEVELOPMENT', true );
11
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
12
@@ -1262,8 +1262,7 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
1262
// Check for the Comment Form location
1263
if( get_option('subscribe_reloaded_stcr_position') == 'yes' ) {
1264
$output .= "<style type='text/css'>.stcr-hidden{display: none !important;}</style>";
1265
- $output .= "<script type='text/javascript'>$(document).ready(function($){var stcr_form=$('div.stcr-form');stcr_form.prevUntil('form').each(function(){var $this=$(this);if($this.find(':input[type=\"submit\"]').length){stcr_form.remove(),$this.before(stcr_form);$('div.stcr-form').removeClass('stcr-hidden');return false;}})});
1266
- </script>";
1267
$output .= "<div class='stcr-form stcr-hidden'>";
1268
$output .= "<!-- Subscribe to Comments Reloaded version ". $wp_subscribe_reloaded->stcr->current_version . " -->";
1269
$output .= "<!-- BEGIN: subscribe to comments reloaded -->" . $html_to_show . "<!-- END: subscribe to comments reloaded -->";
6
exit;
7
}
8
9
+ define( __NAMESPACE__.'\\VERSION','190411' );
10
define( __NAMESPACE__.'\\DEVELOPMENT', true );
11
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
12
1262
// Check for the Comment Form location
1263
if( get_option('subscribe_reloaded_stcr_position') == 'yes' ) {
1264
$output .= "<style type='text/css'>.stcr-hidden{display: none !important;}</style>";
1265
+ $output .= "<script type='text/javascript'>jQuery(document).ready(function($){var stcr_form=$('div.stcr-form');stcr_form.prevUntil('form').each(function(){var _this=$(this);if(_this.find(':input[type=\"submit\"]').length){stcr_form.remove(),_this.before(stcr_form);$('div.stcr-form').removeClass('stcr-hidden');return false;}})});</script>";
1266
$output .= "<div class='stcr-form stcr-hidden'>";
1267
$output .= "<!-- Subscribe to Comments Reloaded version ". $wp_subscribe_reloaded->stcr->current_version . " -->";
1268
$output .= "<!-- BEGIN: subscribe to comments reloaded -->" . $html_to_show . "<!-- END: subscribe to comments reloaded -->";