I Recommend This - Version 2.6.3

Version Description

Download this release

Release Info

Developer hchouhan
Plugin Icon 128x128 I Recommend This
Version 2.6.3
Comparing to
See all releases

Code changes from version 2.6.2 to 2.6.3

Files changed (2) hide show
  1. dot-irecommendthis.php +16 -12
  2. readme.txt +5 -2
dot-irecommendthis.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: I Recommend This
4
  * Plugin URI: http://www.harishchouhan.com/personal-projects/i-recommend-this/
5
  * Description: This plugin allows your visitors to simply recommend or like your posts instead of commment it.
6
- * Version: 2.6.2
7
  * Author: Harish Chouhan
8
  * Author URI: http://www.harishchouhan.com
9
  * Author Email: me@harishchouhan.com
@@ -38,7 +38,8 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
38
 
39
  class DOT_IRecommendThis {
40
 
41
- public $version = '2.6.0';
 
42
 
43
  /*--------------------------------------------*
44
  * Constructor
@@ -93,7 +94,11 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
93
 
94
  $this->register_plugin_version();
95
 
96
- add_option("dot_irecommendthis_db_version", $dot_irecommendthis_db_version);
 
 
 
 
97
  }
98
 
99
  } // end activate
@@ -560,12 +565,16 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
560
  $post_ID = $id ? $id : get_the_ID();
561
  global $post;
562
 
563
- /*
564
 
565
- Check if Unique IP saving is required or disabled
 
 
 
 
 
 
 
566
 
567
- */
568
- if( !isset($options['disable_unique_ip']) ) $options['disable_unique_ip'] = '0';
569
 
570
  if( $options['disable_unique_ip'] != '1' ) {
571
 
@@ -573,11 +582,6 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
573
  }
574
 
575
 
576
- $options = get_option( 'dot_irecommendthis_settings' );
577
- if( !isset($options['text_zero_suffix']) ) $options['text_zero_suffix'] = '';
578
- if( !isset($options['text_one_suffix']) ) $options['text_one_suffix'] = '';
579
- if( !isset($options['text_more_suffix']) ) $options['text_more_suffix'] = '';
580
-
581
  $output = $this->dot_recommend_this($post_ID, $options['text_zero_suffix'], $options['text_one_suffix'], $options['text_more_suffix']);
582
 
583
 
3
  * Plugin Name: I Recommend This
4
  * Plugin URI: http://www.harishchouhan.com/personal-projects/i-recommend-this/
5
  * Description: This plugin allows your visitors to simply recommend or like your posts instead of commment it.
6
+ * Version: 2.6.3
7
  * Author: Harish Chouhan
8
  * Author URI: http://www.harishchouhan.com
9
  * Author Email: me@harishchouhan.com
38
 
39
  class DOT_IRecommendThis {
40
 
41
+ public $version = '2.6.2';
42
+ public $db_version = '2.6.2';
43
 
44
  /*--------------------------------------------*
45
  * Constructor
94
 
95
  $this->register_plugin_version();
96
 
97
+ if ( $this->db_version != '' ) {
98
+ update_option( 'dot_irecommendthis_db_version', $this->db_version );
99
+ }
100
+
101
+ //add_option("dot_irecommendthis_db_version", $dot_irecommendthis_db_version);
102
  }
103
 
104
  } // end activate
565
  $post_ID = $id ? $id : get_the_ID();
566
  global $post;
567
 
 
568
 
569
+ $options = get_option( 'dot_irecommendthis_settings' );
570
+ if( !isset($options['text_zero_suffix']) ) $options['text_zero_suffix'] = '';
571
+ if( !isset($options['text_one_suffix']) ) $options['text_one_suffix'] = '';
572
+ if( !isset($options['text_more_suffix']) ) $options['text_more_suffix'] = '';
573
+ if( !isset($options['link_title_new']) ) $options['link_title_new'] = '';
574
+ if( !isset($options['link_title_active']) ) $options['link_title_active'] = '';
575
+ if( !isset($options['disable_unique_ip']) ) $options['disable_unique_ip'] = '0'; //Check if Unique IP saving is required or disabled
576
+
577
 
 
 
578
 
579
  if( $options['disable_unique_ip'] != '1' ) {
580
 
582
  }
583
 
584
 
 
 
 
 
 
585
  $output = $this->dot_recommend_this($post_ID, $options['text_zero_suffix'], $options['text_one_suffix'], $options['text_more_suffix']);
586
 
587
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: hchouhan, dreamsonline, dreamsmedia, Benoit "LeBen" Burgener
3
  Donate link: http://www.dreamsonline.net
4
  Tags: recommend, like, love, post, rate, rating, post rating, heart, dribbble like, tumblr like
5
  Requires at least: 3.3
6
- Tested up to: 3.8
7
- Stable tag: 2.6.2
8
  Last Updated: 2013-December-26
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -89,6 +89,9 @@ You can also visit the [support center](http://www.dreamsonline.net/wordpress-pl
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 2.6.2
93
  * French translation added. Thanks to Murat from [wptheme.fr](http://wptheme.fr/)
94
 
3
  Donate link: http://www.dreamsonline.net
4
  Tags: recommend, like, love, post, rate, rating, post rating, heart, dribbble like, tumblr like
5
  Requires at least: 3.3
6
+ Tested up to: 3.8.1
7
+ Stable tag: 2.6.3
8
  Last Updated: 2013-December-26
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
89
 
90
  == Changelog ==
91
 
92
+ = 2.6.3
93
+ * Fixed 3 undefined index errors for disable_unique_ip, link_title_new & link_title_active. Thanks to [sebabornia](http://wordpress.org/support/profile/sebabornia)
94
+
95
  = 2.6.2
96
  * French translation added. Thanks to Murat from [wptheme.fr](http://wptheme.fr/)
97