Yasr – Yet Another Stars Rating - Version 1.8.8

Version Description

  • FIXED: bug when using more than a multi set in a single page (remember to delete browser cache)
  • FIXED: undefined notice
Download this release

Release Info

Developer Dudo
Plugin Icon 128x128 Yasr – Yet Another Stars Rating
Version 1.8.8
Comparing to
See all releases

Code changes from version 1.8.7 to 1.8.8

js/yasr-front.js CHANGED
@@ -274,7 +274,9 @@ function yasrRaterVisitorsMultiSet (yasrMultiSetVisitorInDom) {
274
275
rateCallback: function rateCallback(rating, done) {
276
277
- setIdField = elem.getAttribute('data-rater-set-field-id');
278
279
//Just leave 1 number after the .
280
rating = rating.toFixed(1);
@@ -284,6 +286,8 @@ function yasrRaterVisitorsMultiSet (yasrMultiSetVisitorInDom) {
284
this.setRating(vote); //set the new rating
285
286
ratingObject = {
287
field: setIdField,
288
rating: vote
289
};
@@ -301,22 +305,25 @@ function yasrRaterVisitorsMultiSet (yasrMultiSetVisitorInDom) {
301
302
}
303
304
- jQuery('#yasr-send-visitor-multiset-'+yasrCommonData.postid+'-'+yasrMultiSetData.setType).on('click', function() {
305
306
- jQuery('#yasr-send-visitor-multiset-'+yasrCommonData.postid+'-'+yasrMultiSetData.setType).hide();
307
- jQuery('#yasr-loader-multiset-visitor-'+yasrCommonData.postid+'-'+yasrMultiSetData.setType).show();
308
309
var data = {
310
action: 'yasr_visitor_multiset_field_vote',
311
nonce: yasrMultiSetData.nonceVisitor,
312
- post_id: yasrCommonData.postid,
313
rating: ratingArray,
314
- set_type: yasrMultiSetData.setType
315
};
316
317
//Send value to the Server
318
jQuery.post(yasrCommonData.ajaxurl, data, function(response) {
319
- jQuery('#yasr-loader-multiset-visitor-'+yasrCommonData.postid+'-'+yasrMultiSetData.setType).text(response);
320
});
321
322
});
274
275
rateCallback: function rateCallback(rating, done) {
276
277
+ var postId = elem.getAttribute('data-rater-postid');
278
+ var setId = elem.getAttribute('data-rater-setid');
279
+ var setIdField = elem.getAttribute('data-rater-set-field-id');
280
281
//Just leave 1 number after the .
282
rating = rating.toFixed(1);
286
this.setRating(vote); //set the new rating
287
288
ratingObject = {
289
+ postid: postId,
290
+ setid: setId,
291
field: setIdField,
292
rating: vote
293
};
305
306
}
307
308
+ jQuery('.yasr-send-visitor-multiset').on('click', function() {
309
310
+ var multiSetPostId = this.getAttribute('data-postid');
311
+ var multiSetId = this.getAttribute('data-setid');
312
+
313
+ jQuery('#yasr-send-visitor-multiset-'+multiSetPostId+'-'+multiSetId).hide();
314
+ jQuery('#yasr-loader-multiset-visitor-'+multiSetPostId+'-'+multiSetId).show();
315
316
var data = {
317
action: 'yasr_visitor_multiset_field_vote',
318
nonce: yasrMultiSetData.nonceVisitor,
319
+ post_id: multiSetPostId,
320
rating: ratingArray,
321
+ set_type: multiSetId
322
};
323
324
//Send value to the Server
325
jQuery.post(yasrCommonData.ajaxurl, data, function(response) {
326
+ jQuery('#yasr-loader-multiset-visitor-'+multiSetPostId+'-'+multiSetId).text(response);
327
});
328
329
});
lib/yasr-ajax-functions.php CHANGED
@@ -1039,84 +1039,97 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1039
//clean array, so if an user rate same field twice, take only the last rating
1040
$cleaned_array = yasr_unique_multidim_array($rating, 'field');
1041
1042
foreach ($cleaned_array as $rating_values) {
1043
1044
- $id_field = $rating_values['field'];
1045
- $rating = $rating_values['rating'];
1046
1047
- //Find the existing votes
1048
- $existing_vote=$wpdb->get_results($wpdb->prepare("SELECT number_of_votes, sum_votes FROM " . YASR_MULTI_SET_VALUES_TABLE . "
1049
- WHERE post_id = %d
1050
- AND set_type = %d
1051
- AND field_id = %d
1052
- ",
1053
- $post_id, $set_type, $id_field));
1054
1055
- if(!empty($existing_vote)) {
1056
1057
- foreach ($existing_vote as $user_votes) {
1058
- $number_of_votes = $user_votes->number_of_votes;
1059
- $user_votes_sum = $user_votes->sum_votes;
1060
- }
1061
1062
- $number_of_votes=$number_of_votes+1;
1063
- $user_votes_sum=$user_votes_sum+$rating;
1064
1065
- $query_success=$wpdb->update(
1066
- YASR_MULTI_SET_VALUES_TABLE,
1067
- array (
1068
- 'number_of_votes' => $number_of_votes,
1069
- 'sum_votes' => $user_votes_sum,
1070
),
1071
- array (
1072
- 'post_id' => $post_id,
1073
- 'field_id' => $id_field,
1074
- 'set_type' => $set_type
1075
),
1076
- array('%d', '%s' ),
1077
- array( '%d', '%d', '%d' )
1078
- );
1079
1080
- }
1081
1082
- else {
1083
1084
- //Find the highest_id (it's not auto increment on db due to gd star compatibility)
1085
- $highest_id=$wpdb->get_var("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
1086
1087
- //highest id is 0 in data is empty
1088
- if (!$highest_id) {
1089
- $new_id=0;
1090
- }
1091
1092
- $new_id=$highest_id + 1;
1093
1094
- $query_success=$wpdb->replace(
1095
- YASR_MULTI_SET_VALUES_TABLE,
1096
- array (
1097
- 'id'=>$new_id,
1098
- 'post_id'=>$post_id,
1099
- 'field_id'=>$id_field,
1100
- 'set_type'=>$set_type,
1101
- 'number_of_votes' => 1,
1102
- 'sum_votes' => $rating
1103
),
1104
- array ("%d", "%d", "%d", "%d", "%d", "%d")
1105
- );
1106
-
1107
- }
1108
1109
1110
- if ($query_success) {
1111
- $array_error[] = 0;
1112
- }
1113
1114
- else {
1115
- $array_error[] = 1;
1116
- }
1117
1118
} //End foreach ($rating as $rating_values)
1119
1120
$error_found = FALSE;
1121
1122
foreach ($array_error as $error) {
@@ -1129,7 +1142,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1129
1130
$cookiename = 'yasr_multi_visitor_cookie';
1131
1132
- $data_to_save = array(
1133
'post_id' => $post_id,
1134
'set_id' => $set_type
1135
);
@@ -1139,7 +1152,6 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1139
_e('Rating saved!', 'yet-another-stars-rating');
1140
1141
}
1142
-
1143
else {
1144
_e('Rating not saved. Please Try again', 'yet-another-stars-rating');
1145
}
1039
//clean array, so if an user rate same field twice, take only the last rating
1040
$cleaned_array = yasr_unique_multidim_array($rating, 'field');
1041
1042
+ //this is a counter: if at the end of the foreach it still 0, means that an user rated in a set
1043
+ //and then submit another one
1044
+ $counter_matched_fields = 0;
1045
+
1046
foreach ($cleaned_array as $rating_values) {
1047
1048
+ //check if the set id in the array is the same of the clicked
1049
+ if ($rating_values['postid'] == $post_id && $rating_values['setid'] == $set_type) {
1050
1051
+ //increase the counter
1052
+ $counter_matched_fields = $counter_matched_fields+1;
1053
1054
+ $id_field = $rating_values['field'];
1055
+ $rating = $rating_values['rating'];
1056
1057
+ //Find the existing votes
1058
+ $existing_vote = $wpdb->get_results($wpdb->prepare("SELECT number_of_votes, sum_votes FROM " . YASR_MULTI_SET_VALUES_TABLE . "
1059
+ WHERE post_id = %d
1060
+ AND set_type = %d
1061
+ AND field_id = %d
1062
+ ",$post_id, $set_type, $id_field));
1063
1064
+ if (!empty($existing_vote)) {
1065
1066
+ foreach ($existing_vote as $user_votes) {
1067
+ $number_of_votes = $user_votes->number_of_votes;
1068
+ $user_votes_sum = $user_votes->sum_votes;
1069
+ }
1070
+
1071
+ $number_of_votes = $number_of_votes + 1;
1072
+ $user_votes_sum = $user_votes_sum + $rating;
1073
+
1074
+ $query_success = $wpdb->update(
1075
+ YASR_MULTI_SET_VALUES_TABLE,
1076
+ array(
1077
+ 'number_of_votes' => $number_of_votes,
1078
+ 'sum_votes' => $user_votes_sum,
1079
),
1080
+ array(
1081
+ 'post_id' => $post_id,
1082
+ 'field_id' => $id_field,
1083
+ 'set_type' => $set_type
1084
),
1085
+ array('%d', '%s'),
1086
+ array('%d', '%d', '%d')
1087
+ );
1088
1089
+ }
1090
1091
+ else {
1092
1093
+ //Find the highest_id (it's not auto increment on db due to gd star compatibility)
1094
+ $highest_id = $wpdb->get_var("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
1095
1096
+ //highest id is 0 in data is empty
1097
+ if (!$highest_id) {
1098
+ $new_id = 0;
1099
+ }
1100
1101
+ $new_id = $highest_id + 1;
1102
1103
+ $query_success = $wpdb->replace(
1104
+ YASR_MULTI_SET_VALUES_TABLE,
1105
+ array(
1106
+ 'id' => $new_id,
1107
+ 'post_id' => $post_id,
1108
+ 'field_id' => $id_field,
1109
+ 'set_type' => $set_type,
1110
+ 'number_of_votes' => 1,
1111
+ 'sum_votes' => $rating
1112
),
1113
+ array("%d", "%d", "%d", "%d", "%d", "%d")
1114
+ );
1115
1116
+ }
1117
1118
+ if ($query_success) {
1119
+ $array_error[] = 0;
1120
+ }
1121
+ else {
1122
+ $array_error[] = 1;
1123
+ }
1124
1125
+ } //End if $rating_values['postid'] == $post_id
1126
1127
} //End foreach ($rating as $rating_values)
1128
1129
+ if ($counter_matched_fields === 0) {
1130
+ $array_error[] = 1;
1131
+ }
1132
+
1133
$error_found = FALSE;
1134
1135
foreach ($array_error as $error) {
1142
1143
$cookiename = 'yasr_multi_visitor_cookie';
1144
1145
+ $data_to_save = array(
1146
'post_id' => $post_id,
1147
'set_id' => $set_type
1148
);
1152
_e('Rating saved!', 'yet-another-stars-rating');
1153
1154
}
1155
else {
1156
_e('Rating not saved. Please Try again', 'yet-another-stars-rating');
1157
}
lib/yasr-functions.php CHANGED
@@ -876,11 +876,17 @@ function yasr_wp_fastest_cache($post_id, $is_singular) {
876
exit( 'Error setting yasr cookie' );
877
}
878
879
- //setcookie add \ , so I need to stripslahes
880
- $existing_data = stripslashes( $_COOKIE[ $cookiename ] );
881
882
- //By default, json_decode return an object, TRUE to return an array
883
- $existing_data = json_decode( $existing_data, TRUE);
884
885
//whetever exists or not, push into at the end of array
886
$existing_data[] = $data_to_save;
@@ -990,8 +996,19 @@ add_action('yasr_action_on_visitor_multiset_vote', 'yasr_delete_cache');
990
991
function yasr_delete_cache($array_action_visitor_vote) {
992
993
- $post_id = $array_action_visitor_vote['post_id'];
994
- $is_singular = $array_action_visitor_vote['is_singular'];
995
996
yasr_wp_super_cache_support($post_id);
997
yasr_wp_rocket_support($post_id);
876
exit( 'Error setting yasr cookie' );
877
}
878
879
+ $existing_data = array(); //avoid undefined index
880
881
+ if(isset($_COOKIE[ $cookiename ])) {
882
+
883
+ //setcookie add \ , so I need to stripslahes
884
+ $existing_data = stripslashes($_COOKIE[$cookiename]);
885
+
886
+ //By default, json_decode return an object, TRUE to return an array
887
+ $existing_data = json_decode($existing_data, TRUE);
888
+
889
+ }
890
891
//whetever exists or not, push into at the end of array
892
$existing_data[] = $data_to_save;
996
997
function yasr_delete_cache($array_action_visitor_vote) {
998
999
+ if(isset($array_action_visitor_vote['post_id'])) {
1000
+ $post_id = $array_action_visitor_vote['post_id'];
1001
+ }
1002
+ else {
1003
+ return;
1004
+ }
1005
+
1006
+ if(isset($array_action_visitor_vote['is_singular'])) {
1007
+ $is_singular = $array_action_visitor_vote['is_singular'];
1008
+ }
1009
+ else {
1010
+ return;
1011
+ }
1012
1013
yasr_wp_super_cache_support($post_id);
1014
yasr_wp_rocket_support($post_id);
lib/yasr-shortcode-functions.php CHANGED
@@ -170,6 +170,8 @@ add_shortcode ('yasr_visitor_votes', 'shortcode_visitor_votes_callback');
170
//name of cookie to check
171
$yasr_cookiename = 'yasr_visitor_vote_cookie';
172
173
if (isset($_COOKIE[$yasr_cookiename])) {
174
175
$cookie_data = stripslashes($_COOKIE[$yasr_cookiename]);
@@ -187,8 +189,6 @@ add_shortcode ('yasr_visitor_votes', 'shortcode_visitor_votes_callback');
187
$cookie_value = (int)$value['rating'];
188
//Stop doing foreach, here we've found the rating for current post
189
break;
190
- } else {
191
- $cookie_value = FALSE;
192
}
193
194
}
@@ -205,9 +205,6 @@ add_shortcode ('yasr_visitor_votes', 'shortcode_visitor_votes_callback');
205
206
}
207
208
- else {
209
- $cookie_value = FALSE;
210
- }
211
212
$shortcode_html = '<!--Yasr Visitor Votes Shortcode-->';
213
$shortcode_html .= "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes\">";
@@ -489,54 +486,43 @@ add_shortcode ('yasr_visitor_multiset', 'yasr_visitor_multiset_callback');
489
$image = YASR_IMG_DIR . "/loader.gif";
490
$average_txt = __("Average", "yet-another-stars-rating");
491
$loader_html = "<span class=\"yasr-loader-multiset-visitor\" id=\"yasr-loader-multiset-visitor-$post_id-$setid\" >&nbsp; " . ' <img src=' . "$image" .' title="yasr-loader" alt="yasr-loader"></span>';
492
- $button_html = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id-$setid\" class=\"button button-primary \" value=\"" . __('Submit!', 'yet-another-stars-rating') . " \" />";
493
$button_html_disabled = '<input type="submit" disabled="disabled" class="button button-primary" id="yasr-send-visitor-multiset-disabled" disabled="disabled" value="'.__('Submit!', 'yet-another-stars-rating').'" >';
494
$yasr_cookiename = 'yasr_multi_visitor_cookie';
495
496
//Check cookie and if voting is allowed only to logged in users
497
if (isset($_COOKIE[$yasr_cookiename])) {
498
499
- //check who can vote here too
500
- //e.g. an user has a cookimm then open an incognito window,
501
- //ge can't vote again
502
- if (YASR_ALLOWED_USER === 'logged_only') {
503
- $button = $button_html_disabled;
504
- $star_readonly = 'true';
505
- $span_message_content = "<span class=\"yasr-visitor-votes-must-sign-in\">" . __("You must sign in to vote", 'yet-another-stars-rating') . "</span>";
506
- }
507
-
508
- else {
509
-
510
- $cookie_data = stripslashes( $_COOKIE[ $yasr_cookiename ] );
511
512
- //By default, json_decode return an object, TRUE to return an array
513
- $cookie_data = json_decode($cookie_data, TRUE);
514
-
515
- if (is_array($cookie_data)) {
516
517
- foreach ($cookie_data as $value) {
518
- $cookie_post_id = (int)$value['post_id'];
519
- $cookie_set_id = (int)$value['set_id'];
520
521
- if ($cookie_post_id === $post_id && $cookie_set_id == $setid) {
522
- $button = "";
523
- $star_readonly = 'true';
524
- $span_message_content = __('Thank you for voting! ', 'yet-another-stars-rating');
525
526
- //Stop doing foreach, here we've found the rating for current post
527
- break;
528
529
- } else {
530
- $button = $button_html;
531
- $star_readonly = 'false';
532
- $span_message_content = "";
533
- }
534
535
}
536
537
}
538
539
- }
540
}
541
542
else {
@@ -558,7 +544,7 @@ add_shortcode ('yasr_visitor_multiset', 'yasr_visitor_multiset_callback');
558
559
} //End if user logged in
560
561
- //Is user is logged in
562
else {
563
$button = $button_html;
564
$star_readonly = 'false';
170
//name of cookie to check
171
$yasr_cookiename = 'yasr_visitor_vote_cookie';
172
173
+ $cookie_value = FALSE; //avoid undefined
174
+
175
if (isset($_COOKIE[$yasr_cookiename])) {
176
177
$cookie_data = stripslashes($_COOKIE[$yasr_cookiename]);
189
$cookie_value = (int)$value['rating'];
190
//Stop doing foreach, here we've found the rating for current post
191
break;
192
}
193
194
}
205
206
}
207
208
209
$shortcode_html = '<!--Yasr Visitor Votes Shortcode-->';
210
$shortcode_html .= "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes\">";
486
$image = YASR_IMG_DIR . "/loader.gif";
487
$average_txt = __("Average", "yet-another-stars-rating");
488
$loader_html = "<span class=\"yasr-loader-multiset-visitor\" id=\"yasr-loader-multiset-visitor-$post_id-$setid\" >&nbsp; " . ' <img src=' . "$image" .' title="yasr-loader" alt="yasr-loader"></span>';
489
+ $button_html = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id-$setid\" class=\"button button-primary yasr-send-visitor-multiset\" data-postid=\"$post_id\" data-setid=\"$setid\" value=\"" . __('Submit!', 'yet-another-stars-rating') . " \" />";
490
$button_html_disabled = '<input type="submit" disabled="disabled" class="button button-primary" id="yasr-send-visitor-multiset-disabled" disabled="disabled" value="'.__('Submit!', 'yet-another-stars-rating').'" >';
491
$yasr_cookiename = 'yasr_multi_visitor_cookie';
492
493
//Check cookie and if voting is allowed only to logged in users
494
if (isset($_COOKIE[$yasr_cookiename])) {
495
496
+ $cookie_data = stripslashes( $_COOKIE[ $yasr_cookiename ] );
497
498
+ //By default, json_decode return an object, TRUE to return an array
499
+ $cookie_data = json_decode($cookie_data, TRUE);
500
501
+ if (is_array($cookie_data)) {
502
503
+ foreach ($cookie_data as $value) {
504
+ $cookie_post_id = (int)$value['post_id'];
505
+ $cookie_set_id = (int)$value['set_id'];
506
507
+ if ($cookie_post_id === $post_id && $cookie_set_id == $setid) {
508
+ $button = "";
509
+ $star_readonly = 'true';
510
+ $span_message_content = __('Thank you for voting! ', 'yet-another-stars-rating');
511
512
+ //Stop doing foreach, here we've found the rating for current post
513
+ break;
514
515
}
516
+ else {
517
+ $button = $button_html;
518
+ $star_readonly = 'false';
519
+ $span_message_content = "";
520
+ }
521
522
}
523
524
+ }
525
+
526
}
527
528
else {
544
545
} //End if user logged in
546
547
+ //User is logged in
548
else {
549
$button = $button_html;
550
$star_readonly = 'false';
readme.txt CHANGED
@@ -3,9 +3,9 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
Tags: ratings, rating, postrating, google rating, 5 star, review, reviews, star rating, vote, votes, blocks
4
Requires at least: 4.3.0
5
Contributors: Dudo
6
- Tested up to: 5.0.3
7
Requires PHP: 5.3
8
- Stable tag: 1.8.7
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11
Boost the way people interact with your website, e-commerce or blog with an easy and intuitive WordPress rating system!
@@ -21,6 +21,9 @@ Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-gener
21
Once YASR is installed, when you create or update a page or a post, a box (metabox) will be available in the upper right corner where you'll
22
be able to insert the overall rating. You can either place the overall rating automatically at the beginning or the end of a post (look in "Settings"
23
-> "Yet Another Stars Rating: Settings"), or wherever you want in the page using the shortcode [yasr_overall_rating] (easily added through the visual editor).
24
25
= Visitor Votes =
26
You can give your users the ability to vote, pasting the shortcode [yasr_visitor_votes] where you want the stars to appear.
@@ -101,7 +104,7 @@ Most def! Yasr supports these caching plugins:
101
* [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
102
* [Cache Enabler – WordPress Cache](https://wordpress.org/plugins/cache-enabler/)
103
* [Wp Fastest Cache](https://wordpress.org/plugins/wp-fastest-cache/)
104
- * [Wp Rocket](https://wp-rocket.me)
105
106
= Why I don't see stars in google? =
107
Please be sure that if you use mostly the "yasr_visitor_votes" shortcode, you've to select "Aggregate Rating" to the question "Which rich snippet do you want to use?" in the General Settings.
@@ -124,10 +127,14 @@ If doesn't, it's suggested to ask in a SEO oriented forum.
124
125
The full changelog can be found in the plugin's directory. Recent entries:
126
127
= 1.8.7 =
128
* FIXED: Security fix
129
* FIXED: if yasr_visitor_votes is used twice in the same page, loader and results are now shown in the right place
130
- * TWEAKED: updated freemius sdk to version 2.2.3
131
* NEW FEATURE: Yasr now works with WP Fastest Cache – WordPress Cache plugin by Emre Vona
132
* NEW FEATURE: Yasr now works with Cache Enabler – WordPress Cache plugin by KeyCDN
133
3
Tags: ratings, rating, postrating, google rating, 5 star, review, reviews, star rating, vote, votes, blocks
4
Requires at least: 4.3.0
5
Contributors: Dudo
6
+ Tested up to: 5.1
7
Requires PHP: 5.3
8
+ Stable tag: 1.8.8
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11
Boost the way people interact with your website, e-commerce or blog with an easy and intuitive WordPress rating system!
21
Once YASR is installed, when you create or update a page or a post, a box (metabox) will be available in the upper right corner where you'll
22
be able to insert the overall rating. You can either place the overall rating automatically at the beginning or the end of a post (look in "Settings"
23
-> "Yet Another Stars Rating: Settings"), or wherever you want in the page using the shortcode [yasr_overall_rating] (easily added through the visual editor).
24
+ **For Gutenberg users**
25
+ Just click on the "+" symbol to add a block, and search for YASR section: select "Yasr: Overall Rating": the panel settings will appear in the right, you can rate here.
26
+
27
28
= Visitor Votes =
29
You can give your users the ability to vote, pasting the shortcode [yasr_visitor_votes] where you want the stars to appear.
104
* [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
105
* [Cache Enabler – WordPress Cache](https://wordpress.org/plugins/cache-enabler/)
106
* [Wp Fastest Cache](https://wordpress.org/plugins/wp-fastest-cache/)
107
+ * [Wp Rocket] (https://wp-rocket.me)
108
109
= Why I don't see stars in google? =
110
Please be sure that if you use mostly the "yasr_visitor_votes" shortcode, you've to select "Aggregate Rating" to the question "Which rich snippet do you want to use?" in the General Settings.
127
128
The full changelog can be found in the plugin's directory. Recent entries:
129
130
+ = 1.8.8 =
131
+ * FIXED: bug when using more than a multi set in a single page (remember to delete browser cache)
132
+ * FIXED: undefined notice
133
+
134
= 1.8.7 =
135
* FIXED: Security fix
136
* FIXED: if yasr_visitor_votes is used twice in the same page, loader and results are now shown in the right place
137
+ * TWEAKED: updated freemius sdk to version 2.2.3git
138
* NEW FEATURE: Yasr now works with WP Fastest Cache – WordPress Cache plugin by Emre Vona
139
* NEW FEATURE: Yasr now works with Cache Enabler – WordPress Cache plugin by KeyCDN
140
yet-another-stars-rating.php CHANGED
@@ -4,7 +4,7 @@
4
* Plugin Name: Yet Another Stars Rating
5
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
* Description: Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and testimonials to your website posts, pages and CPT, without affecting its speed.
7
- * Version: 1.8.7
8
* Author: Dario Curvino
9
* Author URI: https://yetanotherstarsrating.com/
10
* Text Domain: yet-another-stars-rating
@@ -77,7 +77,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
77
yasr_fs();
78
// Signal that SDK was initiated.
79
do_action( 'yasr_fs_loaded' );
80
- define( 'YASR_VERSION_NUM', '1.8.7' );
81
//Plugin relative path
82
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
83
//Plugin RELATIVE PATH without slashes (just the directory's name)
4
* Plugin Name: Yet Another Stars Rating
5
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
* Description: Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and testimonials to your website posts, pages and CPT, without affecting its speed.
7
+ * Version: 1.8.8
8
* Author: Dario Curvino
9
* Author URI: https://yetanotherstarsrating.com/
10
* Text Domain: yet-another-stars-rating
77
yasr_fs();
78
// Signal that SDK was initiated.
79
do_action( 'yasr_fs_loaded' );
80
+ define( 'YASR_VERSION_NUM', '1.8.8' );
81
//Plugin relative path
82
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
83
//Plugin RELATIVE PATH without slashes (just the directory's name)