kk Star Ratings - Version 2.6.1

Version Description

  • Fix: Possible division by zero.
  • Update: Bump wp version compatibility to 4.9.5.
Download this release

Release Info

Developer bhittani
Plugin Icon 128x128 kk Star Ratings
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.6 to 2.6.1

Files changed (2) hide show
  1. index.php +4 -4
  2. readme.txt +9 -27
index.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: kk Star Ratings
5
  Plugin URI: https://github.com/kamalkhan/kk-star-ratings
6
  Description: Renewed from the ground up(as of v2.0), clean, animated and light weight ratings feature for your blog. With kk Star Ratings, you can <strong>allow your blog posts to be rated by your blog visitors</strong>. It also includes a <strong>widget</strong> which you can add to your sidebar to show the top rated post. Wait! There is more to it. Enjoy the extensive options you can set to customize this plugin.
7
- Version: 2.6
8
  Author: Kamal Khan
9
  Author URI: http://bhittani.com
10
  License: GPLv2 or later
@@ -446,8 +446,8 @@ if(!class_exists('BhittaniPlugin_kkStarRatings')) :
446
  {
447
  $nratings = $ratings + ($stars/($total_stars/5));
448
  $ncasts = $casts + ($stars>0);
449
- $avg = $nratings ? number_format((float)($nratings/$ncasts), 2, '.', '') : 0;
450
- $per = $nratings ? number_format((float)((($nratings/$ncasts)/5)*100), 2, '.', '') : 0;
451
  $Response[$pid]['disable'] = 'false';
452
  if($stars)
453
  {
@@ -722,7 +722,7 @@ if(!class_exists('BhittaniPlugin_kkStarRatings')) :
722
  }
723
  }
724
 
725
- $kkStarRatings_obj = new BhittaniPlugin_kkStarRatings('bhittani_plugin_kksr', 'kk Star Ratings', '2.5.1');
726
 
727
  // Setup
728
  register_activation_hook(__FILE__, array($kkStarRatings_obj, 'activate'));
4
  Plugin Name: kk Star Ratings
5
  Plugin URI: https://github.com/kamalkhan/kk-star-ratings
6
  Description: Renewed from the ground up(as of v2.0), clean, animated and light weight ratings feature for your blog. With kk Star Ratings, you can <strong>allow your blog posts to be rated by your blog visitors</strong>. It also includes a <strong>widget</strong> which you can add to your sidebar to show the top rated post. Wait! There is more to it. Enjoy the extensive options you can set to customize this plugin.
7
+ Version: 2.6.1
8
  Author: Kamal Khan
9
  Author URI: http://bhittani.com
10
  License: GPLv2 or later
446
  {
447
  $nratings = $ratings + ($stars/($total_stars/5));
448
  $ncasts = $casts + ($stars>0);
449
+ $avg = $nratings && $ncasts ? number_format((float)($nratings/$ncasts), 2, '.', '') : 0;
450
+ $per = $nratings && $ncasts ? number_format((float)((($nratings/$ncasts)/5)*100), 2, '.', '') : 0;
451
  $Response[$pid]['disable'] = 'false';
452
  if($stars)
453
  {
722
  }
723
  }
724
 
725
+ $kkStarRatings_obj = new BhittaniPlugin_kkStarRatings('bhittani_plugin_kksr', 'kk Star Ratings', '2.6.1');
726
 
727
  // Setup
728
  register_activation_hook(__FILE__, array($kkStarRatings_obj, 'activate'));
readme.txt CHANGED
@@ -1,28 +1,17 @@
1
  === kk Star Ratings ===
2
-
3
-
4
  Contributors: bhittani
5
-
6
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CM659D9SHGKE6
7
-
8
  Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited stars, google rich snippets
9
-
10
  Requires at least: 3.0
11
-
12
- Tested up to: 4.8
13
-
14
- Stable tag: 2.6
15
-
16
 
17
  kk Star Ratings allows blog visitors to involve and interact more effectively with your website by rating posts.
18
 
19
-
20
-
21
  == Description ==
22
-
23
-
24
-
25
-
26
  kk Star Ratings has been renewed from the ground up in version 2.0.
27
 
28
  This plugin displays a user defined amount of star ratings in your posts/pages.
@@ -63,19 +52,12 @@ Enhanced settings page where you can adjust quite anything you may need to. You
63
 
64
  1. Reset the ratings for individual posts or the entire site.
65
 
66
-
67
-
68
-
69
  == Installation ==
70
 
71
-
72
-
73
  1. Upload the folder 'kk-star-ratings' found inside the zip to the `/wp-content/plugins/` directory
74
  1. Activate the plugin through the 'Plugins' menu in WordPress
75
  1. Adjust the settings under kk Star Ratings tab in wp-admin.
76
 
77
-
78
-
79
  == Frequently Asked Questions ==
80
  =
81
 
@@ -109,12 +91,8 @@ I need some help or have some issues?
109
 
110
  Visit the help tab in the settings to find out what you can do.
111
 
112
-
113
-
114
  == Screenshots ==
115
 
116
-
117
-
118
  1. The general settings page
119
 
120
 
@@ -147,6 +125,10 @@ Visit the help tab in the settings to find out what you can do.
147
 
148
  == Changelog ==
149
 
 
 
 
 
150
  = 2.6 =
151
  * Fix: Parse legend correctly when not using google rich snippets.
152
  * Fix: Admin screen colum notice bug.
1
  === kk Star Ratings ===
 
 
2
  Contributors: bhittani
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CM659D9SHGKE6
 
4
  Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited stars, google rich snippets
 
5
  Requires at least: 3.0
6
+ Requires PHP: 5.2.4
7
+ Tested up to: 4.9.5
8
+ Stable tag: 2.6.1
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
  kk Star Ratings allows blog visitors to involve and interact more effectively with your website by rating posts.
13
 
 
 
14
  == Description ==
 
 
 
 
15
  kk Star Ratings has been renewed from the ground up in version 2.0.
16
 
17
  This plugin displays a user defined amount of star ratings in your posts/pages.
52
 
53
  1. Reset the ratings for individual posts or the entire site.
54
 
 
 
 
55
  == Installation ==
56
 
 
 
57
  1. Upload the folder 'kk-star-ratings' found inside the zip to the `/wp-content/plugins/` directory
58
  1. Activate the plugin through the 'Plugins' menu in WordPress
59
  1. Adjust the settings under kk Star Ratings tab in wp-admin.
60
 
 
 
61
  == Frequently Asked Questions ==
62
  =
63
 
91
 
92
  Visit the help tab in the settings to find out what you can do.
93
 
 
 
94
  == Screenshots ==
95
 
 
 
96
  1. The general settings page
97
 
98
 
125
 
126
  == Changelog ==
127
 
128
+ = 2.6.1 =
129
+ * Fix: Possible division by zero.
130
+ * Update: Bump wp version compatibility to 4.9.5.
131
+
132
  = 2.6 =
133
  * Fix: Parse legend correctly when not using google rich snippets.
134
  * Fix: Admin screen colum notice bug.