Version Description
- FIXED: star disappear after user rating in some circumstances
- FIXED: javascript noticies
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 1.5.7 |
Comparing to | |
See all releases |
Code changes from version 1.5.6 to 1.5.7
- js/yasr-front.js +1 -1
- lib/yasr-ajax-functions.php +3 -1
- readme.txt +5 -1
- yet-another-stars-rating.php +2 -2
js/yasr-front.js
CHANGED
@@ -35,7 +35,7 @@ document.addEventListener('DOMContentLoaded', function(event) {
|
|
35 |
}
|
36 |
|
37 |
|
38 |
-
if (yasrMostHighestRanking
|
39 |
|
40 |
yasrMostOrHighestRatedChart();
|
41 |
|
35 |
}
|
36 |
|
37 |
|
38 |
+
if (typeof yasrMostHighestRanking !== 'undefined') {
|
39 |
|
40 |
yasrMostOrHighestRatedChart();
|
41 |
|
lib/yasr-ajax-functions.php
CHANGED
@@ -1035,6 +1035,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
1035 |
$px_size = '32';
|
1036 |
}
|
1037 |
|
|
|
1038 |
$transient_name = 'yasr_visitor_votes_' . $post_id;
|
1039 |
|
1040 |
delete_transient( $transient_name );
|
@@ -1071,7 +1072,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
1071 |
);
|
1072 |
|
1073 |
//insert the new row
|
1074 |
-
|
|
|
1075 |
|
1076 |
$result_insert_log = $wpdb->insert (
|
1077 |
YASR_LOG_TABLE,
|
1035 |
$px_size = '32';
|
1036 |
}
|
1037 |
|
1038 |
+
|
1039 |
$transient_name = 'yasr_visitor_votes_' . $post_id;
|
1040 |
|
1041 |
delete_transient( $transient_name );
|
1072 |
);
|
1073 |
|
1074 |
//insert the new row
|
1075 |
+
//use ! instead of === FALSE
|
1076 |
+
if (!$result_update_log) {
|
1077 |
|
1078 |
$result_insert_log = $wpdb->insert (
|
1079 |
YASR_LOG_TABLE,
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
|
|
4 |
Requires at least: 4.3.0
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 4.9.4
|
7 |
-
Stable tag: 1.5.
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
|
@@ -107,6 +107,10 @@ Of course not: you can easily add it on the visual editor just by clicking the "
|
|
107 |
|
108 |
The full changelog can be found in the plugin's directory. Recent entries:
|
109 |
|
|
|
|
|
|
|
|
|
110 |
= 1.5.6 =
|
111 |
* Fixed Javascript error
|
112 |
|
4 |
Requires at least: 4.3.0
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 1.5.7
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
|
107 |
|
108 |
The full changelog can be found in the plugin's directory. Recent entries:
|
109 |
|
110 |
+
= 1.5.7 =
|
111 |
+
* FIXED: star disappear after user rating in some circumstances
|
112 |
+
* FIXED: javascript noticies
|
113 |
+
|
114 |
= 1.5.6 =
|
115 |
* Fixed Javascript error
|
116 |
|
yet-another-stars-rating.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Yet Another Stars Rating
|
4 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
5 |
* Description: Yet Another Stars Rating turn your WordPress into a complete review website.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: Dario Curvino
|
8 |
* Author URI: https://yetanotherstarsrating.com/
|
9 |
* Text Domain: yet-another-stars-rating
|
@@ -31,7 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
31 |
|
32 |
if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
|
33 |
|
34 |
-
define('YASR_VERSION_NUM', '1.5.
|
35 |
|
36 |
//Plugin relative path
|
37 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|
3 |
* Plugin Name: Yet Another Stars Rating
|
4 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
5 |
* Description: Yet Another Stars Rating turn your WordPress into a complete review website.
|
6 |
+
* Version: 1.5.7
|
7 |
* Author: Dario Curvino
|
8 |
* Author URI: https://yetanotherstarsrating.com/
|
9 |
* Text Domain: yet-another-stars-rating
|
31 |
|
32 |
if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
|
33 |
|
34 |
+
define('YASR_VERSION_NUM', '1.5.7');
|
35 |
|
36 |
//Plugin relative path
|
37 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|