[Plugin: Subscribe to Comments] Minor fixes
-
Hi,
There are few minor coding issues that you might want to address :
1/ Line 266 :
$this->default_subscribed = ($this->settings[‘default_subscribed’]) ? true : false;
replace with :
$this->default_subscribed = (isset($this->settings[‘default_subscribed’])) ? true : false;
2/ Line 731 :
if ( $update )
replace with :
if (isset($update))
3/ Line 849 :
add_action(‘init’, create_function(‘$a’,’global $sg_subscribe; if ($_POST[\’solo-comment-subscribe\’] == \’solo-comment-subscribe\’ && is_numeric($_POST[\’postid\’]) ) {
Replace with :
add_action(‘init’, create_function(‘$a’,’global $sg_subscribe; if (isset($_POST[\’solo-comment-subscribe\’]) && $_POST[\’solo-comment-subscribe\’] == \’solo-comment-subscribe\’ && is_numeric($_POST[\’postid\’]) ) {This will allow to fix 3 php warnings ??
Thanks!
https://www.ads-software.com/extend/plugins/subscribe-to-comments/
- The topic ‘[Plugin: Subscribe to Comments] Minor fixes’ is closed to new replies.