Version Description
Download this release
Release Info
Developer | bhittani |
Plugin | kk Star Ratings |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- index.php +2 -2
- languages/kk-star-ratings.pot +1 -1
- readme.txt +1 -1
- src/functions.php +1 -1
index.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Author URI: http://bhittani.com
|
9 |
* Text Domain: kk-star-ratings
|
10 |
* Domain Path: /languages
|
11 |
-
* Version: 3.0.
|
12 |
* License: GPLv2 or later
|
13 |
*
|
14 |
* @package Bhittani\StarRating
|
@@ -21,7 +21,7 @@ if (! defined('ABSPATH')) {
|
|
21 |
|
22 |
define('KKSR_FILE', __FILE__);
|
23 |
define('KKSR_PLUGIN', plugin_basename(KKSR_FILE));
|
24 |
-
define('KKSR_VERSION', '3.0.
|
25 |
define('KKSR_PREFIX', 'kksr_');
|
26 |
define('KKSR_SLUG', 'kk-star-ratings');
|
27 |
define('KKSR_LABEL', 'kk Star Ratings');
|
8 |
* Author URI: http://bhittani.com
|
9 |
* Text Domain: kk-star-ratings
|
10 |
* Domain Path: /languages
|
11 |
+
* Version: 3.0.2
|
12 |
* License: GPLv2 or later
|
13 |
*
|
14 |
* @package Bhittani\StarRating
|
21 |
|
22 |
define('KKSR_FILE', __FILE__);
|
23 |
define('KKSR_PLUGIN', plugin_basename(KKSR_FILE));
|
24 |
+
define('KKSR_VERSION', '3.0.2');
|
25 |
define('KKSR_PREFIX', 'kksr_');
|
26 |
define('KKSR_SLUG', 'kk-star-ratings');
|
27 |
define('KKSR_LABEL', 'kk Star Ratings');
|
languages/kk-star-ratings.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kk-star-ratings\n"
|
7 |
-
"POT-Creation-Date: 2019-07-18
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kk-star-ratings\n"
|
7 |
+
"POT-Creation-Date: 2019-07-18 07:22:42+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited
|
|
5 |
Requires at least: 4.5
|
6 |
Requires PHP: 5.5.9
|
7 |
Tested up to: 5.2.2
|
8 |
-
Stable tag: 3.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
5 |
Requires at least: 4.5
|
6 |
Requires PHP: 5.5.9
|
7 |
Tested up to: 5.2.2
|
8 |
+
Stable tag: 3.0.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
src/functions.php
CHANGED
@@ -348,7 +348,7 @@ function vote($idOrPost, $rating)
|
|
348 |
update_post_meta($id, '_'.prefix('ratings'), $ratings);
|
349 |
update_post_meta($id, '_'.prefix('casts'), $count);
|
350 |
// For legacy reasons.
|
351 |
-
update_post_meta($id, '_'.prefix('avg'), calculateScore($ratings, $count));
|
352 |
|
353 |
do_action(prefix('vote'), $id, $rating);
|
354 |
|
348 |
update_post_meta($id, '_'.prefix('ratings'), $ratings);
|
349 |
update_post_meta($id, '_'.prefix('casts'), $count);
|
350 |
// For legacy reasons.
|
351 |
+
update_post_meta($id, '_'.prefix('avg'), calculateScore($ratings, $count, $stars));
|
352 |
|
353 |
do_action(prefix('vote'), $id, $rating);
|
354 |
|