Yasr – Yet Another Stars Rating - Version 1.2.6

Version Description

  • TWEAKED: removed get_currentuserinfo to use wp_get_current_user()
  • TWEAKED: removed unused div on yasr_most_or_highest_rated shortcode
  • TWEAKED: minor changes on rankings shortcodes
  • TWEAKED: added $rating on action yasr_action_on_visitor_vote, yasr_action_on_update_visitor_vote and yasr_action_on_overall_rating
Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

lib/yasr-ajax-functions.php CHANGED
@@ -55,7 +55,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
55
 
56
  }
57
 
58
- do_action('yasr_action_on_overall_rating', $post_id);
59
 
60
  global $wpdb;
61
 
@@ -1198,7 +1198,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1198
  exit();
1199
  }
1200
 
1201
- do_action('yasr_action_on_visitor_vote', $post_id);
1202
 
1203
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
1204
  die( 'Security check' );
@@ -1288,8 +1288,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1288
 
1289
  yasr_setcookie($cookiename, $rating);
1290
 
1291
- global $current_user;
1292
- get_currentuserinfo();
1293
 
1294
  $ip_adress = yasr_get_ip();
1295
 
@@ -1357,7 +1356,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1357
  }
1358
 
1359
  //create an hook
1360
- do_action('yasr_action_on_update_visitor_vote', $post_id);
1361
 
1362
  //Check nonce
1363
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
@@ -1396,8 +1395,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1396
 
1397
  $all_post_votes = $wpdb->get_results($wpdb->prepare("SELECT sum_votes, number_of_votes FROM " . YASR_VOTES_TABLE . " WHERE post_id=%d", $post_id));
1398
 
1399
- global $current_user;
1400
- get_currentuserinfo();
1401
 
1402
  $old_vote = $wpdb->get_var($wpdb->prepare("SELECT vote FROM " . YASR_LOG_TABLE . " WHERE user_id=%d AND post_id=%d", $current_user->ID, $post_id));
1403
 
55
 
56
  }
57
 
58
+ do_action('yasr_action_on_overall_rating', $post_id, $rating);
59
 
60
  global $wpdb;
61
 
1198
  exit();
1199
  }
1200
 
1201
+ do_action('yasr_action_on_visitor_vote', $post_id, $rating);
1202
 
1203
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
1204
  die( 'Security check' );
1288
 
1289
  yasr_setcookie($cookiename, $rating);
1290
 
1291
+ $current_user = wp_get_current_user();
 
1292
 
1293
  $ip_adress = yasr_get_ip();
1294
 
1356
  }
1357
 
1358
  //create an hook
1359
+ do_action('yasr_action_on_update_visitor_vote', $post_id, $rating);
1360
 
1361
  //Check nonce
1362
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
1395
 
1396
  $all_post_votes = $wpdb->get_results($wpdb->prepare("SELECT sum_votes, number_of_votes FROM " . YASR_VOTES_TABLE . " WHERE post_id=%d", $post_id));
1397
 
1398
+ $current_user = wp_get_current_user();
 
1399
 
1400
  $old_vote = $wpdb->get_var($wpdb->prepare("SELECT vote FROM " . YASR_LOG_TABLE . " WHERE user_id=%d AND post_id=%d", $current_user->ID, $post_id));
1401
 
lib/yasr-db-functions.php CHANGED
@@ -363,8 +363,7 @@ function yasr_check_if_user_already_voted($post_id=FALSE) {
363
 
364
  global $wpdb;
365
 
366
- global $current_user;
367
- get_currentuserinfo();
368
 
369
  $user_id = $current_user->ID;
370
 
363
 
364
  global $wpdb;
365
 
366
+ $current_user = wp_get_current_user();
 
367
 
368
  $user_id = $current_user->ID;
369
 
lib/yasr-shortcode-functions.php CHANGED
@@ -39,7 +39,9 @@ add_shortcode ('yasr_overall_rating', 'shortcode_overall_rating_callback');
39
  $overall_rating = "-1";
40
  }
41
 
42
- $shortcode_html = '';
 
 
43
 
44
  if (YASR_TEXT_BEFORE_STARS == 1 && YASR_TEXT_BEFORE_OVERALL != '') {
45
 
@@ -61,6 +63,10 @@ add_shortcode ('yasr_overall_rating', 'shortcode_overall_rating_callback');
61
 
62
  }
63
 
 
 
 
 
64
 
65
  //If overall rating in loop is enabled don't use is_singular && is main_query
66
  if ( YASR_SHOW_OVERALL_IN_LOOP === 'enabled' ) {
@@ -166,8 +172,10 @@ add_shortcode ('yasr_visitor_votes', 'shortcode_visitor_votes_callback');
166
 
167
  }
168
 
169
-
170
- $shortcode_html = "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes\">";
 
 
171
  $span_after_rate_it = "";
172
 
173
  //I've to check a logged in user that has already rated
@@ -288,6 +296,10 @@ add_shortcode ('yasr_visitor_votes', 'shortcode_visitor_votes_callback');
288
 
289
  $shortcode_html .= "</div>";
290
 
 
 
 
 
291
  wp_localize_script( 'yasrfront', "yasrVisitorsVotesData", array(
292
  'nonceVisitor' => $ajax_nonce_visitor
293
  )
@@ -321,7 +333,9 @@ add_shortcode ('yasr_visitor_votes_readonly', 'yasr_visitor_votes_readonly_callb
321
 
322
  function yasr_visitor_votes_readonly_callback ($atts) {
323
 
324
- $shortcode_html = NULL; //Avoid undefined variable outside is_singular && is_main_query
 
 
325
 
326
  extract( shortcode_atts (
327
  array(
@@ -368,13 +382,19 @@ add_shortcode ('yasr_visitor_votes_readonly', 'yasr_visitor_votes_readonly_callb
368
 
369
  $stars_attribute = yasr_stars_size($size);
370
 
371
- $shortcode_html = "<div id=\"yasr_visitor_votes_readonly_$post_id\" class=\"yasr-visitor-votes_readonly\">";
 
 
372
  $span_after_rate_it = "";
373
 
374
  $shortcode_html .= "<div class=\"$stars_attribute[class]\" id=\"yasr_rateit_visitor_votes_readonly_$post_id\" data-rateit-starwidth=\"$stars_attribute[px_size]\" data-rateit-starheight=\"$stars_attribute[px_size]\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>";
375
 
376
  $shortcode_html .= "</div>";
377
 
 
 
 
 
378
 
379
  //IF show visitor votes in loop is disabled use is_singular && is_main query
380
  if ( YASR_SHOW_VISITOR_VOTES_IN_LOOP === 'disabled' ) {
@@ -429,7 +449,9 @@ add_shortcode ('yasr_multiset', 'shortcode_multi_set_callback');
429
 
430
  }
431
 
432
- $shortcode_html = ""; //Avoid undefined variable if used a missing setid
 
 
433
 
434
  $multiset_vote_sum = 0;
435
  $multiset_rows_number = 0; //
@@ -452,7 +474,7 @@ add_shortcode ('yasr_multiset', 'shortcode_multi_set_callback');
452
 
453
  }
454
 
455
- $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
456
 
457
  foreach ($set_name_content as $set_content) {
458
 
@@ -478,6 +500,10 @@ add_shortcode ('yasr_multiset', 'shortcode_multi_set_callback');
478
 
479
  $shortcode_html.="</table>";
480
 
 
 
 
 
481
  return $shortcode_html;
482
 
483
  } //End function
@@ -570,12 +596,16 @@ function yasr_visitor_multiset_callback ( $atts ) {
570
 
571
  $set_name_content = yasr_get_multi_set_visitor ($post_id, $setid);
572
 
 
 
 
 
573
  if ($set_name_content) {
574
 
575
  $multiset_vote_sum = 0;//avoid undefined variable
576
  $multiset_rows_number = 0;//avoid undefined variable
577
 
578
- $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
579
 
580
  foreach ($set_name_content as $set_content) {
581
 
@@ -639,7 +669,7 @@ function yasr_visitor_multiset_callback ( $atts ) {
639
  ORDER BY field_id ASC", $setid));
640
 
641
 
642
- $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
643
 
644
  foreach ($set_name as $set_content) {
645
 
@@ -712,6 +742,10 @@ function yasr_visitor_multiset_callback ( $atts ) {
712
  $var_ajax_url = json_encode(admin_url('admin-ajax.php'));
713
  $var_ajax_nonce_visitor_multiset = json_encode($ajax_nonce_visitor_multiset);
714
 
 
 
 
 
715
  $javascript = "
716
 
717
  <script type=\"text/javascript\">
@@ -755,9 +789,13 @@ add_shortcode ('yasr_top_ten_highest_rated', 'yasr_top_ten_highest_rated_callbac
755
  AND v.overall_rating > 0
756
  ORDER BY v.overall_rating DESC, v.id ASC LIMIT 10");
757
 
 
 
 
 
758
  if ($query_result) {
759
 
760
- $shortcode_html = "<table class=\"yasr-table-chart\">";
761
 
762
  foreach ($query_result as $result) {
763
 
@@ -778,6 +816,10 @@ add_shortcode ('yasr_top_ten_highest_rated', 'yasr_top_ten_highest_rated_callbac
778
 
779
  $shortcode_html .= "</table>";
780
 
 
 
 
 
781
  return $shortcode_html;
782
 
783
  } //end if $query_result
@@ -796,7 +838,9 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
796
  function yasr_most_or_highest_rated_posts_callback () {
797
 
798
 
799
- $shortcode_html = "";
 
 
800
 
801
  global $wpdb;
802
 
@@ -836,7 +880,7 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
836
 
837
  $shortcode_html .= "<tr>
838
  <td width=\"60%\" class=\"yasr-top-10-most-highest-left\"><a href=\"$link\">$post_title</a></td>
839
- <td width=\"40%\" class=\"yasr-top-10-most-highest-right\"><div id=\"yasr_visitor_votes\">
840
  <div class=\"rateit medium\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-value=\"$rating\" data-rateit-step=\"0.1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
841
  <br /> [" . __("Total:" , 'yet-another-stars-rating') . "$result->number_of_votes &nbsp;&nbsp;&nbsp;" . __("Average" , 'yet-another-stars-rating') . " $rating]
842
  </td>
@@ -872,7 +916,7 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
872
 
873
  $shortcode_html .= "<tr>
874
  <td width=\"60%\" class=\"yasr-top-10-most-highest-left\"><a href=\"$link\">$post_title</a></td>
875
- <td width=\"40%\" class=\"yasr-top-10-most-highest-right\"><div id=\"yasr_visitor_votes\"><div class=\"rateit medium\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-value=\"$rating\" data-rateit-step=\"0.1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
876
  <br /> [" . __("Total:" , 'yet-another-stars-rating') . "$result->number_of_votes &nbsp;&nbsp;&nbsp;" . __("Average" , 'yet-another-stars-rating') . " $rating]
877
  </td>
878
  </tr>";
@@ -903,6 +947,10 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
903
 
904
  <?php
905
 
 
 
 
 
906
  return $shortcode_html;
907
 
908
 
@@ -928,7 +976,11 @@ add_shortcode ('yasr_top_5_reviewers', 'yasr_top_5_reviewers_callback');
928
 
929
  if ($query_result) {
930
 
931
- $shortcode_html = "
 
 
 
 
932
  <table class=\"yasr-table-chart\">
933
  <tr>
934
  <th>Author</th>
@@ -964,6 +1016,10 @@ add_shortcode ('yasr_top_5_reviewers', 'yasr_top_5_reviewers_callback');
964
 
965
  $shortcode_html .= "</table>";
966
 
 
 
 
 
967
  return $shortcode_html;
968
 
969
  }
@@ -999,7 +1055,11 @@ add_shortcode ('yasr_top_ten_active_users', 'yasr_top_ten_active_users_callback'
999
 
1000
  if ($query_result) {
1001
 
1002
- $shortcode_html = "
 
 
 
 
1003
  <table class=\"yasr-table-chart\">
1004
  <tr>
1005
  <th>UserName</th>
@@ -1033,6 +1093,10 @@ add_shortcode ('yasr_top_ten_active_users', 'yasr_top_ten_active_users_callback'
1033
 
1034
  $shortcode_html .= "</table>";
1035
 
 
 
 
 
1036
  return $shortcode_html;
1037
 
1038
  }
39
  $overall_rating = "-1";
40
  }
41
 
42
+ $shortcode_html = '
43
+ <!--Yasr Overall Rating Shortcode-->
44
+ ';
45
 
46
  if (YASR_TEXT_BEFORE_STARS == 1 && YASR_TEXT_BEFORE_OVERALL != '') {
47
 
63
 
64
  }
65
 
66
+ $shortcode_html .= '
67
+ <!--End Yasr Overall Rating Shortcode-->
68
+ ';
69
+
70
 
71
  //If overall rating in loop is enabled don't use is_singular && is main_query
72
  if ( YASR_SHOW_OVERALL_IN_LOOP === 'enabled' ) {
172
 
173
  }
174
 
175
+ $shortcode_html = '
176
+ <!--Yasr Visitor Votes Shortcode-->
177
+ ';
178
+ $shortcode_html .= "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes\">";
179
  $span_after_rate_it = "";
180
 
181
  //I've to check a logged in user that has already rated
296
 
297
  $shortcode_html .= "</div>";
298
 
299
+ $shortcode_html .= '
300
+ <!--End Yasr Visitor Votes Shortcode-->
301
+ ';
302
+
303
  wp_localize_script( 'yasrfront', "yasrVisitorsVotesData", array(
304
  'nonceVisitor' => $ajax_nonce_visitor
305
  )
333
 
334
  function yasr_visitor_votes_readonly_callback ($atts) {
335
 
336
+ $shortcode_html = '
337
+ <!-- Yasr Visitor Votes Readonly Shortcode-->
338
+ ';
339
 
340
  extract( shortcode_atts (
341
  array(
382
 
383
  $stars_attribute = yasr_stars_size($size);
384
 
385
+
386
+
387
+ $shortcode_html .= "<div id=\"yasr_visitor_votes_readonly_$post_id\" class=\"yasr-visitor-votes_readonly\">";
388
  $span_after_rate_it = "";
389
 
390
  $shortcode_html .= "<div class=\"$stars_attribute[class]\" id=\"yasr_rateit_visitor_votes_readonly_$post_id\" data-rateit-starwidth=\"$stars_attribute[px_size]\" data-rateit-starheight=\"$stars_attribute[px_size]\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>";
391
 
392
  $shortcode_html .= "</div>";
393
 
394
+ $shortcode_html .= '
395
+ <!--End Yasr Visitor Votes Readonly Shortcode-->
396
+ ';
397
+
398
 
399
  //IF show visitor votes in loop is disabled use is_singular && is_main query
400
  if ( YASR_SHOW_VISITOR_VOTES_IN_LOOP === 'disabled' ) {
449
 
450
  }
451
 
452
+ $shortcode_html = '
453
+ <!-- Yasr Multi Set Shortcode-->
454
+ ';
455
 
456
  $multiset_vote_sum = 0;
457
  $multiset_rows_number = 0; //
474
 
475
  }
476
 
477
+ $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
478
 
479
  foreach ($set_name_content as $set_content) {
480
 
500
 
501
  $shortcode_html.="</table>";
502
 
503
+ $shortcode_html .= '
504
+ <!--End Yasr Multi Set Shortcode-->
505
+ ';
506
+
507
  return $shortcode_html;
508
 
509
  } //End function
596
 
597
  $set_name_content = yasr_get_multi_set_visitor ($post_id, $setid);
598
 
599
+ $shortcode_html = '
600
+ <!-- Yasr Visitor Multi Set Shortcode-->
601
+ ';
602
+
603
  if ($set_name_content) {
604
 
605
  $multiset_vote_sum = 0;//avoid undefined variable
606
  $multiset_rows_number = 0;//avoid undefined variable
607
 
608
+ $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
609
 
610
  foreach ($set_name_content as $set_content) {
611
 
669
  ORDER BY field_id ASC", $setid));
670
 
671
 
672
+ $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
673
 
674
  foreach ($set_name as $set_content) {
675
 
742
  $var_ajax_url = json_encode(admin_url('admin-ajax.php'));
743
  $var_ajax_nonce_visitor_multiset = json_encode($ajax_nonce_visitor_multiset);
744
 
745
+ $shortcode_html .= '
746
+ <!-- End Yasr Multi Set Shortcode-->
747
+ ';
748
+
749
  $javascript = "
750
 
751
  <script type=\"text/javascript\">
789
  AND v.overall_rating > 0
790
  ORDER BY v.overall_rating DESC, v.id ASC LIMIT 10");
791
 
792
+ $shortcode_html = '
793
+ <!-- Yasr Top 10 highest Rated Shortcode-->
794
+ ';
795
+
796
  if ($query_result) {
797
 
798
+ $shortcode_html .= "<table class=\"yasr-table-chart\">";
799
 
800
  foreach ($query_result as $result) {
801
 
816
 
817
  $shortcode_html .= "</table>";
818
 
819
+ $shortcode_html .= '
820
+ <!--End Yasr Top 10 highest Rated Shortcode-->
821
+ ';
822
+
823
  return $shortcode_html;
824
 
825
  } //end if $query_result
838
  function yasr_most_or_highest_rated_posts_callback () {
839
 
840
 
841
+ $shortcode_html = '
842
+ <!-- Yasr Most Or Highest Rated Shortcode-->
843
+ ';
844
 
845
  global $wpdb;
846
 
880
 
881
  $shortcode_html .= "<tr>
882
  <td width=\"60%\" class=\"yasr-top-10-most-highest-left\"><a href=\"$link\">$post_title</a></td>
883
+ <td width=\"40%\" class=\"yasr-top-10-most-highest-right\">
884
  <div class=\"rateit medium\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-value=\"$rating\" data-rateit-step=\"0.1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
885
  <br /> [" . __("Total:" , 'yet-another-stars-rating') . "$result->number_of_votes &nbsp;&nbsp;&nbsp;" . __("Average" , 'yet-another-stars-rating') . " $rating]
886
  </td>
916
 
917
  $shortcode_html .= "<tr>
918
  <td width=\"60%\" class=\"yasr-top-10-most-highest-left\"><a href=\"$link\">$post_title</a></td>
919
+ <td width=\"40%\" class=\"yasr-top-10-most-highest-right\"><div class=\"rateit medium\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-value=\"$rating\" data-rateit-step=\"0.1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
920
  <br /> [" . __("Total:" , 'yet-another-stars-rating') . "$result->number_of_votes &nbsp;&nbsp;&nbsp;" . __("Average" , 'yet-another-stars-rating') . " $rating]
921
  </td>
922
  </tr>";
947
 
948
  <?php
949
 
950
+ $shortcode_html .= '
951
+ <!-- End Yasr Most Or Highest Rated Shortcode-->
952
+ ';
953
+
954
  return $shortcode_html;
955
 
956
 
976
 
977
  if ($query_result) {
978
 
979
+ $shortcode_html = '
980
+ <!-- Yasr Top 5 Reviewers Shortcode-->
981
+ ';
982
+
983
+ $shortcode_html .= "
984
  <table class=\"yasr-table-chart\">
985
  <tr>
986
  <th>Author</th>
1016
 
1017
  $shortcode_html .= "</table>";
1018
 
1019
+ $shortcode_html .= '
1020
+ <!-- End Yasr Top 5 Reviewers Shortcode-->
1021
+ ';
1022
+
1023
  return $shortcode_html;
1024
 
1025
  }
1055
 
1056
  if ($query_result) {
1057
 
1058
+ $shortcode_html = '
1059
+ <!-- Yasr Top 10 Active Users Shortcode-->
1060
+ ';
1061
+
1062
+ $shortcode_html .= "
1063
  <table class=\"yasr-table-chart\">
1064
  <tr>
1065
  <th>UserName</th>
1093
 
1094
  $shortcode_html .= "</table>";
1095
 
1096
+ $shortcode_html .= '
1097
+ <!--End Yasr Top 10 Active Users Shortcode-->
1098
+ ';
1099
+
1100
  return $shortcode_html;
1101
 
1102
  }
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.5
7
- Stable tag: 1.2.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
@@ -111,11 +111,17 @@ Of course not: you can easily add it on the visual editor just by clicking the "
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
 
114
  = 1.2.5 =
115
  * NEW FEATURE: in settings -> Multi Set tab is now possible to choose if show or hide by default the average for multi set
116
  * FIXED: logo image for rich snippet
117
  * TWEAKED: changed globals names
118
- * FIXED: minor changes
119
 
120
  = 1.2.4 =
121
  * FIXED: Settings lost on update
4
  Requires at least: 4.3.0
5
  Contributors: Dudo
6
  Tested up to: 4.5
7
+ Stable tag: 1.2.6
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
111
 
112
  == Changelog ==
113
 
114
+ = 1.2.6 =
115
+ * TWEAKED: removed get_currentuserinfo to use wp_get_current_user()
116
+ * TWEAKED: removed unused div on yasr_most_or_highest_rated shortcode
117
+ * TWEAKED: minor changes on rankings shortcodes
118
+ * TWEAKED: added $rating on action yasr_action_on_visitor_vote, yasr_action_on_update_visitor_vote and yasr_action_on_overall_rating
119
+
120
  = 1.2.5 =
121
  * NEW FEATURE: in settings -> Multi Set tab is now possible to choose if show or hide by default the average for multi set
122
  * FIXED: logo image for rich snippet
123
  * TWEAKED: changed globals names
124
+ * FIXED: minor changes
125
 
126
  = 1.2.4 =
127
  * FIXED: Settings lost on update
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.2.5
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
- define('YASR_VERSION_NUM', '1.2.5');
36
 
37
  //Plugin relative path
38
  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.2.6
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
+ define('YASR_VERSION_NUM', '1.2.6');
36
 
37
  //Plugin relative path
38
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );