Yasr – Yet Another Stars Rating - Version 1.5.5

Version Description

  • FIXED: yasr_most_or_highest_rated_posts was displaying 2 table instead 1
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

js/yasr-front.js CHANGED
@@ -34,6 +34,14 @@ document.addEventListener('DOMContentLoaded', function(event) {
34
 
35
  }
36
 
 
 
 
 
 
 
 
 
37
  });
38
 
39
 
@@ -152,7 +160,7 @@ document.addEventListener('DOMContentLoaded', function(event) {
152
  jQuery('#yasr-highest-rated-posts').hide();
153
 
154
  //On click on highest, hide most and show highest
155
- jQuery('#yasr_multi_chart_highest').on("click", function () {
156
 
157
  jQuery('#yasr-most-rated-posts').hide();
158
 
@@ -163,7 +171,7 @@ document.addEventListener('DOMContentLoaded', function(event) {
163
  });
164
 
165
  //Vice versa
166
- jQuery('#yasr_multi_chart_most').on("click", function () {
167
 
168
  jQuery('#yasr-highest-rated-posts').hide();
169
 
34
 
35
  }
36
 
37
+ console.log (yasrMostHighestRanking.enable);
38
+
39
+ if (yasrMostHighestRanking.enable === 'yes') {
40
+
41
+ yasrMostOrHighestRatedChart();
42
+
43
+ }
44
+
45
  });
46
 
47
 
160
  jQuery('#yasr-highest-rated-posts').hide();
161
 
162
  //On click on highest, hide most and show highest
163
+ jQuery('#link-yasr-highest-rated-posts').on("click", function () {
164
 
165
  jQuery('#yasr-most-rated-posts').hide();
166
 
171
  });
172
 
173
  //Vice versa
174
+ jQuery('#link-yasr-most-rated-posts').on("click", function () {
175
 
176
  jQuery('#yasr-highest-rated-posts').hide();
177
 
lib/yasr-shortcode-functions.php CHANGED
@@ -531,241 +531,241 @@ add_shortcode ('yasr_multiset', 'shortcode_multi_set_callback');
531
 
532
  add_shortcode ('yasr_visitor_multiset', 'yasr_visitor_multiset_callback');
533
 
534
- function yasr_visitor_multiset_callback ( $atts ) {
535
 
536
- $ajax_nonce_visitor_multiset = wp_create_nonce( "yasr_nonce_insert_visitor_rating_multiset" );
537
 
538
- global $wpdb;
539
 
540
- // Attributes
541
- extract( shortcode_atts(
542
- array(
543
- 'setid' => '0',
544
- 'postid' => FALSE,
545
- 'show_average' => FALSE
546
- ), $atts )
547
- );
548
 
549
- //If it's not specified use get_the_id
550
- if (!$postid) {
551
 
552
- $post_id = get_the_ID();
553
 
554
- }
555
 
556
- else {
557
 
558
- $post_id = $postid;
559
 
560
- }
561
 
562
- $cookiename = 'yasr_multi_visitor_cookie_' . $post_id . '_' . $setid;
563
 
564
- $image = YASR_IMG_DIR . "/loader.gif";
565
 
566
- $average_txt = __("Average", "yet-another-stars-rating");
567
 
568
- $loader_html = "<span class=\"yasr-loader-multiset-visitor\" id=\"yasr-loader-multiset-visitor-$post_id-$setid\" >&nbsp; " . __("Loading, please wait",'yet-another-stars-rating') . ' <img src=' . "$image" .' title="yasr-loader" alt="yasr-loader"></span>';
569
 
570
- $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') . " \" />";
571
 
572
- if (isset($_COOKIE[$cookiename])) {
573
 
574
- $button = "";
575
- $star_readonly = 'true';
576
- $span_message_content = __('Thank you for voting! ', 'yet-another-stars-rating');
577
 
578
- }
579
 
580
- else {
581
 
582
- //If user is not logged in
583
- if (!is_user_logged_in()) {
584
 
585
- if (YASR_ALLOWED_USER === 'allow_anonymous') {
586
 
587
- $button = $button_html;
588
- $star_readonly = 'false';
589
- $span_message_content = "";
590
 
591
- }
592
 
593
- elseif (YASR_ALLOWED_USER === 'logged_only') {
594
 
595
- $button = $button_html;
596
- $star_readonly = 'true';
597
- $span_message_content = "<span class=\"yasr-visitor-votes-must-sign-in\">" . __("You must sign in to vote", 'yet-another-stars-rating') . "</span>";
598
 
599
- }
600
 
601
 
602
- } //End if user logged in
603
 
604
- //Is user is logged in
605
- else {
606
 
607
- $button = $button_html;
608
- $star_readonly = 'false';
609
- $span_message_content = "";
610
 
611
- }
612
 
613
- }
614
 
615
- $set_name_content = yasr_get_multi_set_visitor ($post_id, $setid);
616
 
617
- $shortcode_html = '
618
- <!-- Yasr Visitor Multi Set Shortcode-->
619
- ';
620
 
621
- if ($set_name_content) {
622
 
623
- $multiset_vote_sum = 0;//avoid undefined variable
624
- $multiset_rows_number = 0;//avoid undefined variable
625
 
626
- $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
627
 
628
- foreach ($set_name_content as $set_content) {
629
 
630
- if($set_content->number_of_votes > 0) {
631
 
632
- $average_rating = $set_content->sum_votes / $set_content->number_of_votes;
633
 
634
- $average_rating = round($average_rating, 1);
635
 
636
- }
637
 
638
- else {
639
 
640
- $average_rating = 0;
641
 
642
- }
643
 
644
- $shortcode_html .= "<tr>
645
- <td>
646
- <span class=\"yasr-multi-set-name-field\">$set_content->name </span>
647
- </td>
648
- <td>
649
- <div class=\"rateit yasr-visitor-multi-$post_id-$setid\" id=\"$set_content->id \" data-rateit-value=\"$average_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"$star_readonly\"></div>
650
- <span class=\"yasr-visitor-multiset-vote-count\">$set_content->number_of_votes</span>
651
- </td>
652
- </tr>";
653
 
654
- $multiset_vote_sum = $multiset_vote_sum + $average_rating;
655
- $multiset_rows_number++;
656
 
657
- } //End foreach
658
 
659
- if ($show_average !== FALSE && $show_average !=='no'|| $show_average===FALSE && YASR_MULTI_SHOW_AVERAGE !== 'no') {
660
 
661
- $multiset_average = $multiset_vote_sum / $multiset_rows_number;
662
- $multiset_average = round($multiset_average, 1);
 
 
 
 
 
 
663
 
664
- $shortcode_html .= "<tr>
665
- <td colspan=\"2\" class=\"yasr-multiset-average\">
666
- $average_txt<div class=\"rateit medium \" data-rateit-value=\"$multiset_average\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-step=\"0.1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
667
- </td>
668
- </tr>";
669
 
 
 
 
 
 
 
 
 
670
  }
671
 
672
- $shortcode_html.="<tr>
673
- <td colspan=\"2\">
674
- $button
675
- $loader_html
676
- <span class=\"yasr-visitor-multiset-message\">$span_message_content</span>
677
- </td>
678
- </tr>
679
- </table>";
680
- }
681
-
682
- else {
683
 
684
- $set_name=$wpdb->get_results($wpdb->prepare("SELECT field_name AS name, field_id AS id
685
- FROM " . YASR_MULTI_SET_FIELDS_TABLE . "
686
- WHERE parent_set_id=%d
687
- ORDER BY field_id ASC", $setid));
688
 
689
 
690
- $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
691
 
692
- foreach ($set_name as $set_content) {
693
 
694
- $shortcode_html .= "<tr>
695
- <td>
696
- <span class=\"yasr-multi-set-name-field\">$set_content->name </span>
697
- </td>
698
- <td>
699
- <div class=\"rateit yasr-visitor-multi-$post_id-$setid\" id=\"$set_content->id\" data-rateit-value=\"0\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"false\"></div>
700
- <span class=\"yasr-visitor-multiset-vote-count\"> 0 </span>
701
- </td>
702
- </tr>";
703
 
704
 
705
- //First time, initialize all fields to 0
706
 
707
- //Find the highest_id (it's not auto increment on db due to gd star compatibility)
708
- $highest_id=$wpdb->get_var("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
709
 
710
- //highest id is 0 if data is empty
711
- if (!$highest_id) {
712
- $new_id=0;
713
- }
714
 
715
- $new_id=$highest_id + 1;
716
 
717
- $wpdb->replace(
718
- YASR_MULTI_SET_VALUES_TABLE,
719
- array (
720
- 'id'=>$new_id,
721
- 'post_id'=>$post_id,
722
- 'field_id'=>$set_content->id,
723
- 'set_type'=>$setid,
724
- 'number_of_votes' => 0,
725
- 'sum_votes' => 0
726
- ),
727
- array ("%d", "%d", "%d", "%d", "%d", "%d")
728
- );
729
 
730
 
731
- } //end foreach ($set_name as $set_content)
732
 
733
 
734
- if ($show_average !== FALSE && $show_average !=='no' || $show_average===FALSE && YASR_MULTI_SHOW_AVERAGE !== 'no') {
735
 
736
- $shortcode_html .= "<tr>
737
- <td colspan=\"2\" class=\"yasr-multiset-average\">
738
- $average_txt<div class=\"rateit medium \" data-rateit-value=\"0\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
739
- </td>
740
- </tr>";
741
 
742
- }
743
 
744
- $shortcode_html.="<tr>
745
- <td colspan=\"2\">
746
- $button
747
- $loader_html
748
- <span class=\"yasr-visitor-multiset-message\">$span_message_content</span>
749
- </td>
750
- </tr>
751
- </table>";
752
 
753
- $shortcode_html.="</table>";
754
 
755
- }
756
 
757
 
758
- $var_ajax_nonce_visitor_multiset = json_encode($ajax_nonce_visitor_multiset);
759
 
760
- $shortcode_html .= '
761
- <!-- End Yasr Multi Set Shortcode-->
762
- ';
763
 
764
- wp_localize_script( 'yasrfront', "yasrMultiSetData", array(
765
- 'nonceVisitor' => $var_ajax_nonce_visitor_multiset,
766
- 'setType' => $setid
767
- )
768
- );
769
 
770
  return $shortcode_html;
771
 
@@ -875,7 +875,10 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
875
  $shortcode_html .= "<table class=\"yasr-table-chart\" id=\"yasr-most-rated-posts\">
876
  <tr class=\"yasr-visitor-votes-title\">
877
  <th>" . __("Post / Page" , 'yet-another-stars-rating') ." </th>
878
- <th>". __("Order By" , 'yet-another-stars-rating') .":&nbsp;&nbsp;<span id=\"yasr_multi_chart_link_to_nothing\">" . __("Most Rated" , 'yet-another-stars-rating') ."</span> | <a href=\"#\" id=\"yasr_multi_chart_highest\">" . __("Highest Rated" , 'yet-another-stars-rating') ."</a></th>
 
 
 
879
  </tr>"
880
  ;
881
 
@@ -914,7 +917,10 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
914
  $shortcode_html .= "<table class=\"yasr-table-chart\" id=\"yasr-highest-rated-posts\">
915
  <tr class=\"yasr-visitor-votes-title\">
916
  <th>" . __("Post / Page" , 'yet-another-stars-rating') ." </th>
917
- <th>". __("Order By" , 'yet-another-stars-rating') .":&nbsp;&nbsp; <a href=\"#\" id=\"yasr_multi_chart_most\">". __("Most Rated" , 'yet-another-stars-rating') ."</a> | <span id=\"yasr_multi_chart_link_to_nothing\">". __("Highest Rated" , 'yet-another-stars-rating') ."</span></th>
 
 
 
918
  </tr>";
919
 
920
  foreach ($query_result_highest as $result) {
@@ -947,6 +953,11 @@ add_shortcode ('yasr_most_or_highest_rated_posts', 'yasr_most_or_highest_rated_p
947
  <!-- End Yasr Most Or Highest Rated Shortcode-->
948
  ';
949
 
 
 
 
 
 
950
  return $shortcode_html;
951
 
952
 
531
 
532
  add_shortcode ('yasr_visitor_multiset', 'yasr_visitor_multiset_callback');
533
 
534
+ function yasr_visitor_multiset_callback ( $atts ) {
535
 
536
+ $ajax_nonce_visitor_multiset = wp_create_nonce( "yasr_nonce_insert_visitor_rating_multiset" );
537
 
538
+ global $wpdb;
539
 
540
+ // Attributes
541
+ extract( shortcode_atts(
542
+ array(
543
+ 'setid' => '0',
544
+ 'postid' => FALSE,
545
+ 'show_average' => FALSE
546
+ ), $atts )
547
+ );
548
 
549
+ //If it's not specified use get_the_id
550
+ if (!$postid) {
551
 
552
+ $post_id = get_the_ID();
553
 
554
+ }
555
 
556
+ else {
557
 
558
+ $post_id = $postid;
559
 
560
+ }
561
 
562
+ $cookiename = 'yasr_multi_visitor_cookie_' . $post_id . '_' . $setid;
563
 
564
+ $image = YASR_IMG_DIR . "/loader.gif";
565
 
566
+ $average_txt = __("Average", "yet-another-stars-rating");
567
 
568
+ $loader_html = "<span class=\"yasr-loader-multiset-visitor\" id=\"yasr-loader-multiset-visitor-$post_id-$setid\" >&nbsp; " . __("Loading, please wait",'yet-another-stars-rating') . ' <img src=' . "$image" .' title="yasr-loader" alt="yasr-loader"></span>';
569
 
570
+ $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') . " \" />";
571
 
572
+ if (isset($_COOKIE[$cookiename])) {
573
 
574
+ $button = "";
575
+ $star_readonly = 'true';
576
+ $span_message_content = __('Thank you for voting! ', 'yet-another-stars-rating');
577
 
578
+ }
579
 
580
+ else {
581
 
582
+ //If user is not logged in
583
+ if (!is_user_logged_in()) {
584
 
585
+ if (YASR_ALLOWED_USER === 'allow_anonymous') {
586
 
587
+ $button = $button_html;
588
+ $star_readonly = 'false';
589
+ $span_message_content = "";
590
 
591
+ }
592
 
593
+ elseif (YASR_ALLOWED_USER === 'logged_only') {
594
 
595
+ $button = $button_html;
596
+ $star_readonly = 'true';
597
+ $span_message_content = "<span class=\"yasr-visitor-votes-must-sign-in\">" . __("You must sign in to vote", 'yet-another-stars-rating') . "</span>";
598
 
599
+ }
600
 
601
 
602
+ } //End if user logged in
603
 
604
+ //Is user is logged in
605
+ else {
606
 
607
+ $button = $button_html;
608
+ $star_readonly = 'false';
609
+ $span_message_content = "";
610
 
611
+ }
612
 
613
+ }
614
 
615
+ $set_name_content = yasr_get_multi_set_visitor ($post_id, $setid);
616
 
617
+ $shortcode_html = '
618
+ <!-- Yasr Visitor Multi Set Shortcode-->
619
+ ';
620
 
621
+ if ($set_name_content) {
622
 
623
+ $multiset_vote_sum = 0;//avoid undefined variable
624
+ $multiset_rows_number = 0;//avoid undefined variable
625
 
626
+ $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
627
 
628
+ foreach ($set_name_content as $set_content) {
629
 
630
+ if($set_content->number_of_votes > 0) {
631
 
632
+ $average_rating = $set_content->sum_votes / $set_content->number_of_votes;
633
 
634
+ $average_rating = round($average_rating, 1);
635
 
636
+ }
637
 
638
+ else {
639
 
640
+ $average_rating = 0;
641
 
642
+ }
643
 
644
+ $shortcode_html .= "<tr>
645
+ <td>
646
+ <span class=\"yasr-multi-set-name-field\">$set_content->name </span>
647
+ </td>
648
+ <td>
649
+ <div class=\"rateit yasr-visitor-multi-$post_id-$setid\" id=\"$set_content->id \" data-rateit-value=\"$average_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"$star_readonly\"></div>
650
+ <span class=\"yasr-visitor-multiset-vote-count\">$set_content->number_of_votes</span>
651
+ </td>
652
+ </tr>";
653
 
654
+ $multiset_vote_sum = $multiset_vote_sum + $average_rating;
655
+ $multiset_rows_number++;
656
 
657
+ } //End foreach
658
 
659
+ if ($show_average !== FALSE && $show_average !=='no'|| $show_average===FALSE && YASR_MULTI_SHOW_AVERAGE !== 'no') {
660
 
661
+ $multiset_average = $multiset_vote_sum / $multiset_rows_number;
662
+ $multiset_average = round($multiset_average, 1);
663
+
664
+ $shortcode_html .= "<tr>
665
+ <td colspan=\"2\" class=\"yasr-multiset-average\">
666
+ $average_txt<div class=\"rateit medium \" data-rateit-value=\"$multiset_average\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-step=\"0.1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
667
+ </td>
668
+ </tr>";
669
 
670
+ }
 
 
 
 
671
 
672
+ $shortcode_html.="<tr>
673
+ <td colspan=\"2\">
674
+ $button
675
+ $loader_html
676
+ <span class=\"yasr-visitor-multiset-message\">$span_message_content</span>
677
+ </td>
678
+ </tr>
679
+ </table>";
680
  }
681
 
682
+ else {
 
 
 
 
 
 
 
 
 
 
683
 
684
+ $set_name=$wpdb->get_results($wpdb->prepare("SELECT field_name AS name, field_id AS id
685
+ FROM " . YASR_MULTI_SET_FIELDS_TABLE . "
686
+ WHERE parent_set_id=%d
687
+ ORDER BY field_id ASC", $setid));
688
 
689
 
690
+ $shortcode_html.="<table class=\"yasr_table_multi_set_shortcode\">";
691
 
692
+ foreach ($set_name as $set_content) {
693
 
694
+ $shortcode_html .= "<tr>
695
+ <td>
696
+ <span class=\"yasr-multi-set-name-field\">$set_content->name </span>
697
+ </td>
698
+ <td>
699
+ <div class=\"rateit yasr-visitor-multi-$post_id-$setid\" id=\"$set_content->id\" data-rateit-value=\"0\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"false\"></div>
700
+ <span class=\"yasr-visitor-multiset-vote-count\"> 0 </span>
701
+ </td>
702
+ </tr>";
703
 
704
 
705
+ //First time, initialize all fields to 0
706
 
707
+ //Find the highest_id (it's not auto increment on db due to gd star compatibility)
708
+ $highest_id=$wpdb->get_var("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
709
 
710
+ //highest id is 0 if data is empty
711
+ if (!$highest_id) {
712
+ $new_id=0;
713
+ }
714
 
715
+ $new_id=$highest_id + 1;
716
 
717
+ $wpdb->replace(
718
+ YASR_MULTI_SET_VALUES_TABLE,
719
+ array (
720
+ 'id'=>$new_id,
721
+ 'post_id'=>$post_id,
722
+ 'field_id'=>$set_content->id,
723
+ 'set_type'=>$setid,
724
+ 'number_of_votes' => 0,
725
+ 'sum_votes' => 0
726
+ ),
727
+ array ("%d", "%d", "%d", "%d", "%d", "%d")
728
+ );
729
 
730
 
731
+ } //end foreach ($set_name as $set_content)
732
 
733
 
734
+ if ($show_average !== FALSE && $show_average !=='no' || $show_average===FALSE && YASR_MULTI_SHOW_AVERAGE !== 'no') {
735
 
736
+ $shortcode_html .= "<tr>
737
+ <td colspan=\"2\" class=\"yasr-multiset-average\">
738
+ $average_txt<div class=\"rateit medium \" data-rateit-value=\"0\" data-rateit-starwidth=\"24\" data-rateit-starheight=\"24\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
739
+ </td>
740
+ </tr>";
741
 
742
+ }
743
 
744
+ $shortcode_html.="<tr>
745
+ <td colspan=\"2\">
746
+ $button
747
+ $loader_html
748
+ <span class=\"yasr-visitor-multiset-message\">$span_message_content</span>
749
+ </td>
750
+ </tr>
751
+ </table>";
752
 
753
+ $shortcode_html.="</table>";
754
 
755
+ }
756
 
757
 
758
+ $var_ajax_nonce_visitor_multiset = json_encode($ajax_nonce_visitor_multiset);
759
 
760
+ $shortcode_html .= '
761
+ <!-- End Yasr Multi Set Shortcode-->
762
+ ';
763
 
764
+ wp_localize_script( 'yasrfront', "yasrMultiSetData", array(
765
+ 'nonceVisitor' => $var_ajax_nonce_visitor_multiset,
766
+ 'setType' => $setid
767
+ )
768
+ );
769
 
770
  return $shortcode_html;
771
 
875
  $shortcode_html .= "<table class=\"yasr-table-chart\" id=\"yasr-most-rated-posts\">
876
  <tr class=\"yasr-visitor-votes-title\">
877
  <th>" . __("Post / Page" , 'yet-another-stars-rating') ." </th>
878
+ <th>". __("Order By" , 'yet-another-stars-rating') .":&nbsp;&nbsp;
879
+ <span id=\"yasr_multi_chart_link_to_nothing\">" . __("Most Rated" , 'yet-another-stars-rating') ."</span> |
880
+ <span id=\"link-yasr-highest-rated-posts\"><a href=\"\">" . __("Highest Rated" , 'yet-another-stars-rating') ."</a></span>
881
+ </th>
882
  </tr>"
883
  ;
884
 
917
  $shortcode_html .= "<table class=\"yasr-table-chart\" id=\"yasr-highest-rated-posts\">
918
  <tr class=\"yasr-visitor-votes-title\">
919
  <th>" . __("Post / Page" , 'yet-another-stars-rating') ." </th>
920
+ <th>". __("Order By" , 'yet-another-stars-rating') .":&nbsp;&nbsp;
921
+ <span id=\"link-yasr-most-rated-posts\"><a href=\"\">". __("Most Rated" , 'yet-another-stars-rating') . "</a> |
922
+ <span id=\"yasr_multi_chart_link_to_nothing\">". __("Highest Rated" , 'yet-another-stars-rating') ."</span>
923
+ </th>
924
  </tr>";
925
 
926
  foreach ($query_result_highest as $result) {
953
  <!-- End Yasr Most Or Highest Rated Shortcode-->
954
  ';
955
 
956
+ wp_localize_script( 'yasrfront', "yasrMostHighestRanking", array(
957
+ 'enable' => 'yes'
958
+ )
959
+ );
960
+
961
  return $shortcode_html;
962
 
963
 
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.4
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,9 @@ 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.4 =
111
  * TWEAKED: removed jacasvript for yasr_visitor_multiset shortcode, use wp_localize_script instead
112
 
4
  Requires at least: 4.3.0
5
  Contributors: Dudo
6
  Tested up to: 4.9.4
7
+ Stable tag: 1.5.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
 
108
  The full changelog can be found in the plugin's directory. Recent entries:
109
 
110
+ = 1.5.5 =
111
+ * FIXED: yasr_most_or_highest_rated_posts was displaying 2 table instead 1
112
+
113
  = 1.5.4 =
114
  * TWEAKED: removed jacasvript for yasr_visitor_multiset shortcode, use wp_localize_script instead
115
 
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.4
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.4');
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.5
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.5');
35
 
36
  //Plugin relative path
37
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );