Comments – wpDiscuz - Version 3.0.6

Version Description

Please update to 3.0.6, there was some incomplete aspects in 3.0.5 Also, in 3.0.6 fixed wpdiscuz_after_label hooking script * Fixed Bug: Catchable Fetal Error with class.WipidiscuzTemplateBuilder.php on line 130

Download this release

Release Info

Developer AdvancedCoding
Plugin Icon 128x128 Comments – wpDiscuz
Version 3.0.6
Comparing to
See all releases

Code changes from version 3.0.5 to 3.0.6

class.WpdiscuzCore.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: wpDiscuz - Supercharged native comments
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- * Version: 3.0.5
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://www.gvectors.com/
9
  * Plugin URI: http://www.gvectors.com/wpdiscuz/
3
  /*
4
  * Plugin Name: wpDiscuz - Supercharged native comments
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ * Version: 3.0.6
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://www.gvectors.com/
9
  * Plugin URI: http://www.gvectors.com/wpdiscuz/
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: wordpress comments, ajax comments, ajax, live update, live comments, realtime chat, chat, realtime commenting, Lazy load, Lazy load comments, mobile commenting, post comments, advanced comment, comments box, community, discussion, discuss, disqus, discuz, Disqus alternative, Livefyre alternative, Jatpack comments alternative, Facebook comments alternative, comment form, commenting, reply, comments, better comments, discussions, comment notifications, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, email commenting, social login, boost comments, native comments
5
  Requires at least: 4.1
6
  Tested up to: 4.3.1
7
- Stable tag: 3.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,12 @@ wpDiscuz Documentation: http://wpdiscuz.com/wpdiscuz-documentation/
139
 
140
  == Changelog ==
141
 
 
 
 
 
 
 
142
  = 3.0.5 =
143
 
144
  * Added: Filter hook to allow display MyCred badges under comment author avatar
4
  Tags: wordpress comments, ajax comments, ajax, live update, live comments, realtime chat, chat, realtime commenting, Lazy load, Lazy load comments, mobile commenting, post comments, advanced comment, comments box, community, discussion, discuss, disqus, discuz, Disqus alternative, Livefyre alternative, Jatpack comments alternative, Facebook comments alternative, comment form, commenting, reply, comments, better comments, discussions, comment notifications, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, email commenting, social login, boost comments, native comments
5
  Requires at least: 4.1
6
  Tested up to: 4.3.1
7
+ Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 3.0.6 =
143
+
144
+ Please update to 3.0.6, there was some incomplete aspects in 3.0.5
145
+ Also, in 3.0.6 fixed wpdiscuz_after_label hooking script
146
+ * Fixed Bug: Catchable Fetal Error with class.WipidiscuzTemplateBuilder.php on line 130
147
+
148
  = 3.0.5 =
149
 
150
  * Added: Filter hook to allow display MyCred badges under comment author avatar
utils/class.WpdiscuzHelper.php CHANGED
@@ -588,20 +588,22 @@ class WpdiscuzHelper {
588
 
589
  public function removeOldFiles() {
590
  $files = scandir($this->captchaDir);
591
- foreach ($files as $file) {
592
- if ($file != '.' && $file != '..' && $file != '.htaccess') {
593
- $fileName = $this->captchaDir . WPD_DS . $file;
594
- $fData = stat($fileName);
595
- if (is_file($fileName) && $fData) {
596
- $expired = $fData['mtime'] + (60 * 60 + 1000);
597
- if ($expired < time() && @chmod($fileName, 0777)) {
598
- if (!unlink($fileName)) {
599
- @chmod($fileName, 0440);
600
- }
601
- }
602
- }
603
- }
604
- }
 
 
605
  }
606
 
607
  public function createTempDir() {
588
 
589
  public function removeOldFiles() {
590
  $files = scandir($this->captchaDir);
591
+ if ($files && is_array($files)) {
592
+ foreach ($files as $file) {
593
+ if ($file != '.' && $file != '..' && $file != '.htaccess') {
594
+ $fileName = $this->captchaDir . WPD_DS . $file;
595
+ $fData = stat($fileName);
596
+ if (is_file($fileName) && $fData) {
597
+ $expired = $fData['mtime'] + (60 * 60 + 1000);
598
+ if ($expired < time() && @chmod($fileName, 0777)) {
599
+ if (!unlink($fileName)) {
600
+ @chmod($fileName, 0440);
601
+ }
602
+ }
603
+ }
604
+ }
605
+ }
606
+ }
607
  }
608
 
609
  public function createTempDir() {