Comments – wpDiscuz - Version 1.0.4

Version Description

Fixed Bug: Fatal error - Using $this when not in object context in ...

Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.4

Files changed (5) hide show
  1. comment-form/form.php +5 -1
  2. readme.txt +9 -2
  3. tasks.txt +0 -1
  4. wc-options.php +2 -2
  5. wc.php +7 -3
comment-form/form.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php global $post, $wc_core; ?>
2
- <?php $wc_core->wc_options->wc_options_serialized->wc_phrases = $wc_core->wc_db_helper->get_phrases(); ?>
 
 
 
 
3
  <script type="text/javascript">
4
  // initialize the validator function
5
  validator.message['invalid'] = '<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_invalid_field']; ?>';
1
  <?php global $post, $wc_core; ?>
2
+ <?php
3
+ if ($wc_core->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
4
+ $wc_core->wc_options->wc_options_serialized->wc_phrases = $wc_core->wc_db_helper->get_phrases();
5
+ }
6
+ ?>
7
  <script type="text/javascript">
8
  // initialize the validator function
9
  validator.message['invalid'] = '<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_invalid_field']; ?>';
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: gVectors Team
3
  Tags: Wordpress Comments, Post Comments, comments box, comments, discussions, comment template
4
  Requires at least: 2.7
5
- Tested up to: 4.0
6
- Stable tag: 1.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -32,6 +32,7 @@ Better comment system. Wordpress post comments and discussion plugin. Allows you
32
  *
33
  * | **Dashboard**
34
  * | Option to display comment form for certain post types
 
35
  * | Options to turn On/Off Comment Voting and Sharing features
36
  * | Option to hide/show CAPTCHA field on comment form
37
  * | Option for "User Must be registered to comment"
@@ -57,6 +58,12 @@ Better comment system. Wordpress post comments and discussion plugin. Allows you
57
  * Support Forum: <http://gvectors.com/questions/>
58
 
59
  == Changelog ==
 
 
 
 
 
 
60
  = 1.0.2 =
61
  * Fixed Bug : Translations does not work, they come by default when saving
62
 
2
  Contributors: gVectors Team
3
  Tags: Wordpress Comments, Post Comments, comments box, comments, discussions, comment template
4
  Requires at least: 2.7
5
+ Tested up to: 4.0.1
6
+ Stable tag: 1.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
32
  *
33
  * | **Dashboard**
34
  * | Option to display comment form for certain post types
35
+ * | Option to set Discussion Tab as the first opened Tab on product page
36
  * | Options to turn On/Off Comment Voting and Sharing features
37
  * | Option to hide/show CAPTCHA field on comment form
38
  * | Option for "User Must be registered to comment"
58
  * Support Forum: <http://gvectors.com/questions/>
59
 
60
  == Changelog ==
61
+ = 1.0.4 =
62
+ Fixed Bug: Fatal error - Using $this when not in object context in ...
63
+
64
+ = 1.0.3 =
65
+ * Fixed Bug : Problem with options page redirection on Wordpress multi-sites
66
+
67
  = 1.0.2 =
68
  * Fixed Bug : Translations does not work, they come by default when saving
69
 
tasks.txt CHANGED
@@ -1 +0,0 @@
1
- User role issue - multisite
 
wc-options.php CHANGED
@@ -65,7 +65,7 @@ class WC_Options {
65
  </div>
66
  <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz General Settings', 'wpdiscuz'); ?></h2>
67
  <br style="clear:both" />
68
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>?page=wpdiscuz_options_page&updated=true" method="post" name="wpdiscuz_options_page" class="wc-main-settings-form wc-form">
69
  <?php
70
  if (function_exists('wp_nonce_field')) {
71
  wp_nonce_field('wc_options_form');
@@ -177,7 +177,7 @@ class WC_Options {
177
  </div>
178
  <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz Front-end Phrases', 'wpdiscuz'); ?></h2>
179
  <br style="clear:both" />
180
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>?page=wpdiscuz_phrases_page&updated=true" method="post" name="wpdiscuz_phrases_page" class="wc-phrases-settings-form wc-form">
181
  <?php
182
  if (function_exists('wp_nonce_field')) {
183
  wp_nonce_field('wc_phrases_form');
65
  </div>
66
  <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz General Settings', 'wpdiscuz'); ?></h2>
67
  <br style="clear:both" />
68
+ <form action="<?php echo admin_url(); ?>admin.php?page=wpdiscuz_options_page&updated=true" method="post" name="wpdiscuz_options_page" class="wc-main-settings-form wc-form">
69
  <?php
70
  if (function_exists('wp_nonce_field')) {
71
  wp_nonce_field('wc_options_form');
177
  </div>
178
  <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz Front-end Phrases', 'wpdiscuz'); ?></h2>
179
  <br style="clear:both" />
180
+ <form action="<?php echo admin_url(); ?>admin.php?page=wpdiscuz_phrases_page&updated=true" method="post" name="wpdiscuz_phrases_page" class="wc-phrases-settings-form wc-form">
181
  <?php
182
  if (function_exists('wp_nonce_field')) {
183
  wp_nonce_field('wc_phrases_form');
wc.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- Version: 1.0.2
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/
@@ -301,7 +301,9 @@ class WC_Core {
301
  * vote on comment via ajax
302
  */
303
  public function vote_on_comment() {
304
- $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
 
 
305
  $messageArray = array();
306
  $messageArray['code'] = -1;
307
  $comment_id = '';
@@ -359,7 +361,9 @@ class WC_Core {
359
  */
360
  public function get_wp_comments($comments_offset, $post_id = null) {
361
  global $post;
362
- $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
 
 
363
 
364
  if (!$post_id) {
365
  $post_id = $post->ID;
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ Version: 1.0.4
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/
301
  * vote on comment via ajax
302
  */
303
  public function vote_on_comment() {
304
+ if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
305
+ $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
306
+ }
307
  $messageArray = array();
308
  $messageArray['code'] = -1;
309
  $comment_id = '';
361
  */
362
  public function get_wp_comments($comments_offset, $post_id = null) {
363
  global $post;
364
+ if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
365
+ $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
366
+ }
367
 
368
  if (!$post_id) {
369
  $post_id = $post->ID;