Yasr – Yet Another Stars Rating - Version 2.4.6

Version Description

NEW OPTION: Is now possible to exclude pages when stars next the title are enabled TWEAKED: changed classname from yasr-container-custom-text-and-visitor-rating to yasr-custom-text-vv-before TWEAKED: span 'yasr-custom-text-before-visitor-rating' removed TWEAKED: added hooks yasr_vv_cookie and yasr_mv_cookie to filter cookies name TWEAKED: minor changes

Download this release

Release Info

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

Code changes from version 2.4.5 to 2.4.6

admin/classes/YasrOnInstall.php CHANGED
@@ -143,6 +143,7 @@ class YasrOnInstall {
143
  $option['auto_insert_custom_post_only'] = 'no';
144
  $option['stars_title'] = 'no';
145
  $option['stars_title_what'] = 'visitor_rating';
 
146
  $option['show_overall_in_loop'] = 'enabled';
147
  $option['show_visitor_votes_in_loop'] = 'enabled';
148
  $option['text_before_stars'] = 1;
143
  $option['auto_insert_custom_post_only'] = 'no';
144
  $option['stars_title'] = 'no';
145
  $option['stars_title_what'] = 'visitor_rating';
146
+ $option['stars_title_exclude_pages'] = 'yes';
147
  $option['show_overall_in_loop'] = 'enabled';
148
  $option['show_visitor_votes_in_loop'] = 'enabled';
149
  $option['text_before_stars'] = 1;
admin/settings/yasr-settings-functions.php CHANGED
@@ -47,8 +47,9 @@ function yasr_general_options_init() {
47
  }
48
 
49
  if ($option && $option['stars_title'] === 'no') {
50
- $option['stars_title_what'] = 'visitor_rating';
51
- $option['stars_title_where'] = 'archive';
 
52
  }
53
 
54
  //This is to avoid undefined offset
@@ -370,6 +371,23 @@ function yasr_stars_title_callback($option) {
370
  ?>
371
  </div>
372
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
373
  <p>&nbsp;</p>
374
 
375
  <div>
47
  }
48
 
49
  if ($option && $option['stars_title'] === 'no') {
50
+ $option['stars_title_what'] = 'visitor_rating';
51
+ $option['stars_title_exclude_pages'] = 'yes';
52
+ $option['stars_title_where'] = 'archive';
53
  }
54
 
55
  //This is to avoid undefined offset
371
  ?>
372
  </div>
373
 
374
+ <br />
375
+
376
+ <div>
377
+ <?php
378
+ $option_title = __('Exclude Pages?', 'yet-another-stars-rating');
379
+ $array_options = array (
380
+ 'yes' => __('Yes', 'yet-another-stars-rating'),
381
+ 'no' => __('No', 'yet-another-stars-rating'),
382
+ );
383
+ $default = $option['stars_title_exclude_pages'];
384
+ $name = 'yasr_general_options[stars_title_exclude_pages]';
385
+ $class = 'yasr-stars-title-options-class';
386
+
387
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
388
+ ?>
389
+ </div>
390
+
391
  <p>&nbsp;</p>
392
 
393
  <div>
includes/classes/YasrDatabaseRatings.php CHANGED
@@ -68,9 +68,12 @@ class YasrDatabaseRatings {
68
  $result = $wpdb->get_results(
69
  $wpdb->prepare(
70
  "SELECT SUM(vote) as sum_votes,
71
- COUNT(vote) as number_of_votes FROM "
72
- . YASR_LOG_TABLE .
73
- " WHERE post_id=%d",
 
 
 
74
  $post_id
75
  )
76
  );
68
  $result = $wpdb->get_results(
69
  $wpdb->prepare(
70
  "SELECT SUM(vote) as sum_votes,
71
+ COUNT(vote) as number_of_votes
72
+ FROM " . YASR_LOG_TABLE .
73
+ " WHERE post_id=%d
74
+ AND vote > 0
75
+ AND vote <= 5
76
+ ",
77
  $post_id
78
  )
79
  );
includes/css/yasr.css CHANGED
@@ -65,22 +65,6 @@
65
  vertical-align: top;
66
  }
67
 
68
- #yasr-custom-text-before-visitor-rating {
69
- display: block;
70
- padding-right: 15px;
71
- vertical-align: top;
72
- }
73
-
74
- .yasr-container-custom-text-and-visitor-rating {
75
- /**/
76
- }
77
-
78
- #yasr-custom-text-before-visitor-rating {
79
- display: block;
80
- vertical-align: top;
81
- padding-right: 15px;
82
- }
83
-
84
  #yasr_visitor_votes {
85
  font-size: small;
86
  display: inline-block;
65
  vertical-align: top;
66
  }
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  #yasr_visitor_votes {
69
  font-size: small;
70
  display: inline-block;
includes/shortcodes/classes/YasrOverallRating.php CHANGED
@@ -63,12 +63,12 @@ class YasrOverallRating extends YasrShortcode {
63
  /**
64
  * @param int | bool $stars_size
65
  * @param int | bool $post_id
66
- *
67
  * @param string | bool $class
 
68
  *
69
  * @return string
70
  */
71
- public function returnHtml($stars_size=false, $post_id=false, $class=false) {
72
 
73
  if(!is_int($stars_size)) {
74
  $stars_size = $this->starSize();
@@ -80,11 +80,15 @@ class YasrOverallRating extends YasrShortcode {
80
 
81
  $class .= ' yasr-rater-stars';
82
 
83
- //if here $this->overall_rating is still null, get the overall_rating
84
- //this could happens when function is called directly
85
  if($this->overall_rating === null) {
86
- $overall_rating = YasrDatabaseRatings::getOverallRating($post_id);
87
- } else {
 
 
 
 
88
  $overall_rating = $this->overall_rating;
89
  }
90
 
63
  /**
64
  * @param int | bool $stars_size
65
  * @param int | bool $post_id
 
66
  * @param string | bool $class
67
+ * @param string | bool $rating
68
  *
69
  * @return string
70
  */
71
+ public function returnHtml($stars_size=false, $post_id=false, $class=false, $rating=false) {
72
 
73
  if(!is_int($stars_size)) {
74
  $stars_size = $this->starSize();
80
 
81
  $class .= ' yasr-rater-stars';
82
 
83
+ //if here $this->overall_rating is still null, check if rating is not false, and if so, put it in $overall rating
84
+ // if rating is false, get from the db
85
  if($this->overall_rating === null) {
86
+ if($rating !== false) {
87
+ $overall_rating = $rating;
88
+ } else {
89
+ $overall_rating = YasrDatabaseRatings::getOverallRating($post_id);
90
+ }
91
+ } else {
92
  $overall_rating = $this->overall_rating;
93
  }
94
 
includes/shortcodes/classes/YasrRankings.php CHANGED
@@ -69,7 +69,8 @@ class YasrRankings extends YasrShortcode {
69
  $link = get_permalink($result->post_id); //Get permalink from post id
70
  $yasr_top_ten_html_id = 'yasr-highest_rated-' . str_shuffle(uniqid());
71
 
72
- $this->returnTableRows($result->post_id,
 
73
  $result->overall_rating,
74
  null,
75
  $post_title,
69
  $link = get_permalink($result->post_id); //Get permalink from post id
70
  $yasr_top_ten_html_id = 'yasr-highest_rated-' . str_shuffle(uniqid());
71
 
72
+ $this->returnTableRows(
73
+ $result->post_id,
74
  $result->overall_rating,
75
  null,
76
  $post_title,
includes/shortcodes/classes/YasrVisitorVotes.php CHANGED
@@ -178,8 +178,6 @@ class YasrVisitorVotes extends YasrShortcode {
178
  $span_bottom_line = false;
179
  $span_bottom_line_content = false;
180
 
181
-
182
-
183
  if ($stars_enabled === 'true_logged') {
184
  //Check if a logged in user has already rated for this post
185
  $vote_if_user_already_rated = YasrDatabaseRatings::visitorVotesHasUserVoted($post_id);
@@ -272,11 +270,11 @@ class YasrVisitorVotes extends YasrShortcode {
272
  YASR_TEXT_BEFORE_VISITOR_RATING
273
  );
274
 
275
- $this->shortcode_html .= "<div class='yasr-container-custom-text-and-visitor-rating'>
276
- <span id='yasr-custom-text-before-visitor-rating'>"
277
- . $text_before_star .
278
- "</span>
279
- </div>";
280
  }
281
 
282
  if (YASR_TEXT_BEFORE_STARS === 1 && YASR_TEXT_AFTER_VISITOR_RATING !== '') {
178
  $span_bottom_line = false;
179
  $span_bottom_line_content = false;
180
 
 
 
181
  if ($stars_enabled === 'true_logged') {
182
  //Check if a logged in user has already rated for this post
183
  $vote_if_user_already_rated = YasrDatabaseRatings::visitorVotesHasUserVoted($post_id);
270
  YASR_TEXT_BEFORE_VISITOR_RATING
271
  );
272
 
273
+ $class_text_before = 'yasr-custom-text-vv-before yasr-custom-text-vv-before-'.$this->post_id;
274
+
275
+ $this->shortcode_html .= '<div class="'.$class_text_before.'">'
276
+ . $text_before_star .
277
+ '</div>';
278
  }
279
 
280
  if (YASR_TEXT_BEFORE_STARS === 1 && YASR_TEXT_AFTER_VISITOR_RATING !== '') {
includes/shortcodes/yasr-shortcode-ajax.php CHANGED
@@ -127,7 +127,7 @@ function yasr_insert_visitor_votes_callback() {
127
  $user_votes_sum = $row_exists['sum_votes'];
128
  $number_of_votes = $row_exists['number_of_votes'];
129
 
130
- $cookiename = 'yasr_visitor_vote_cookie';
131
 
132
  $data_to_save = array(
133
  'post_id' => $post_id,
@@ -295,7 +295,7 @@ function yasr_visitor_multiset_field_vote_callback() {
295
  }
296
 
297
  if (!$error_found) {
298
- $cookiename = 'yasr_multi_visitor_cookie';
299
 
300
  $data_to_save = array(
301
  'post_id' => $post_id,
@@ -343,13 +343,19 @@ function yasr_stats_visitors_votes_callback() {
343
  //create an empty array
344
  $existing_votes = array();
345
 
346
- $stats = $wpdb->get_results($wpdb->prepare("SELECT ROUND( vote, 0 ) as vote, COUNT( vote ) AS n_of_votes
347
- FROM " . YASR_LOG_TABLE . "
348
- WHERE post_id=%d
349
- GROUP BY vote
350
- ORDER BY vote DESC
351
- ",
352
- $post_id),
 
 
 
 
 
 
353
  ARRAY_A);
354
 
355
  $total_votes = 0; //Avoid undefined variable if stats exists. Necessary if $stats not exists
@@ -371,6 +377,7 @@ function yasr_stats_visitors_votes_callback() {
371
  $stats[$i]['n_of_votes'] = 0;
372
  } else {
373
  //If in the new array there are some vote missing create a new array
 
374
  if (!in_array($i, $existing_votes)) {
375
  $missing_vote[$i] = array();
376
  $missing_vote[$i]['vote'] = $i;
@@ -386,10 +393,10 @@ function yasr_stats_visitors_votes_callback() {
386
 
387
  arsort($stats); //sort it by $votes[n_of_votes]
388
 
389
- $html_to_return = '<div class="yasr-visitors-stats-tooltip">';
390
- $html_to_return .= '<span id="yasr-medium-rating-tooltip">' . $medium_rating . ' '
391
- . __('out of 5 stars', 'yet-another-stars-rating') .
392
- '</span>';
393
  $html_to_return .= '<div class="yasr-progress-bars-container">';
394
 
395
  if ($total_votes === 0) {
@@ -404,6 +411,9 @@ function yasr_stats_visitors_votes_callback() {
404
 
405
  foreach ($stats as $logged_votes) {
406
 
 
 
 
407
  if ($i === 1) {
408
  $stars_text = __('star', 'yet-another-stars-rating');
409
  }
@@ -422,6 +432,11 @@ function yasr_stats_visitors_votes_callback() {
422
 
423
  $i --;
424
 
 
 
 
 
 
425
  } //End foreach
426
 
427
  $html_to_return .= '</div></div>';
127
  $user_votes_sum = $row_exists['sum_votes'];
128
  $number_of_votes = $row_exists['number_of_votes'];
129
 
130
+ $cookiename = apply_filters('yasr_vv_cookie', 'yasr_visitor_vote_cookie');
131
 
132
  $data_to_save = array(
133
  'post_id' => $post_id,
295
  }
296
 
297
  if (!$error_found) {
298
+ $cookiename = apply_filters('yasr_mv_cookie', 'yasr_multi_visitor_cookie');
299
 
300
  $data_to_save = array(
301
  'post_id' => $post_id,
343
  //create an empty array
344
  $existing_votes = array();
345
 
346
+ $stats = $wpdb->get_results(
347
+ $wpdb->prepare(
348
+ "SELECT ROUND(vote, 0) as vote,
349
+ COUNT(vote) as n_of_votes
350
+ FROM " . YASR_LOG_TABLE . "
351
+ WHERE post_id=%d
352
+ AND vote > 0
353
+ AND vote <= 5
354
+ GROUP BY vote
355
+ ORDER BY vote DESC
356
+ ",
357
+ $post_id
358
+ ),
359
  ARRAY_A);
360
 
361
  $total_votes = 0; //Avoid undefined variable if stats exists. Necessary if $stats not exists
377
  $stats[$i]['n_of_votes'] = 0;
378
  } else {
379
  //If in the new array there are some vote missing create a new array
380
+ /** @noinspection TypeUnsafeArraySearchInspection */
381
  if (!in_array($i, $existing_votes)) {
382
  $missing_vote[$i] = array();
383
  $missing_vote[$i]['vote'] = $i;
393
 
394
  arsort($stats); //sort it by $votes[n_of_votes]
395
 
396
+ $html_to_return = '<div class="yasr-visitors-stats-tooltip">';
397
+ $html_to_return .= '<span id="yasr-medium-rating-tooltip">' . $medium_rating . ' '
398
+ . __('out of 5 stars', 'yet-another-stars-rating') .
399
+ '</span>';
400
  $html_to_return .= '<div class="yasr-progress-bars-container">';
401
 
402
  if ($total_votes === 0) {
411
 
412
  foreach ($stats as $logged_votes) {
413
 
414
+ //cast int
415
+ $logged_votes['n_of_votes'] = (int)$logged_votes['n_of_votes'];
416
+
417
  if ($i === 1) {
418
  $stars_text = __('star', 'yet-another-stars-rating');
419
  }
432
 
433
  $i --;
434
 
435
+ //if there is a 0 rating in the database (only possible if manually added) break foreach
436
+ if ($i < 1) {
437
+ break;
438
+ }
439
+
440
  } //End foreach
441
 
442
  $html_to_return .= '</div></div>';
includes/yasr-includes-functions.php CHANGED
@@ -129,13 +129,21 @@ function yasr_select_itemtype($html_id=false, $term_id=false, $disabled=false) {
129
  <?php
130
  } //End function yasr_select_itemtype()
131
 
132
- /*** Function to set cookie, since version 0.8.3 ***/
 
 
 
 
 
133
  function yasr_setcookie($cookiename, $data_to_save) {
134
 
135
- if (!$data_to_save || !$cookiename) {
136
  exit('Error setting yasr cookie');
137
  }
138
 
 
 
 
139
  $existing_data = array(); //avoid undefined index
140
 
141
  if (isset($_COOKIE[$cookiename])) {
@@ -153,7 +161,14 @@ function yasr_setcookie($cookiename, $data_to_save) {
153
 
154
  $encoded_data = json_encode($existing_data);
155
 
156
- setcookie($cookiename, $encoded_data, time() + 31536000, COOKIEPATH, COOKIE_DOMAIN, false);
 
 
 
 
 
 
 
157
 
158
  }
159
 
129
  <?php
130
  } //End function yasr_select_itemtype()
131
 
132
+ /*** Function to set cookie
133
+ * @since 0.8.3
134
+ *
135
+ * @param $cookiename //can comes from a filter
136
+ * @param $data_to_save
137
+ */
138
  function yasr_setcookie($cookiename, $data_to_save) {
139
 
140
+ if (!$data_to_save || !$cookiename || !is_string($cookiename)) {
141
  exit('Error setting yasr cookie');
142
  }
143
 
144
+ //sanitize the cookie name
145
+ $cookiename = wp_strip_all_tags($cookiename);
146
+
147
  $existing_data = array(); //avoid undefined index
148
 
149
  if (isset($_COOKIE[$cookiename])) {
161
 
162
  $encoded_data = json_encode($existing_data);
163
 
164
+ $domain = COOKIE_DOMAIN;
165
+
166
+ //this is for multisite support
167
+ if(defined(DOMAIN_CURRENT_SITE)) {
168
+ $domain = DOMAIN_CURRENT_SITE;
169
+ }
170
+
171
+ setcookie($cookiename, $encoded_data, time() + 31536000, COOKIEPATH, $domain, false);
172
 
173
  }
174
 
includes/yasr-includes-init.php CHANGED
@@ -87,9 +87,11 @@ define('YASR_STARS_TITLE', $yasr_stored_options['stars_title']);
87
 
88
  if (YASR_STARS_TITLE === 'yes') {
89
  define('YASR_STARS_TITLE_WHAT', $yasr_stored_options['stars_title_what']);
 
90
  define('YASR_STARS_TITLE_WHERE', $yasr_stored_options['stars_title_where']);
91
  } else {
92
  define('YASR_STARS_TITLE_WHAT', null);
 
93
  define('YASR_STARS_TITLE_WHERE', null);
94
  }
95
 
87
 
88
  if (YASR_STARS_TITLE === 'yes') {
89
  define('YASR_STARS_TITLE_WHAT', $yasr_stored_options['stars_title_what']);
90
+ define('YASR_STARS_TITLE_EXCLUDE_PAGES', $yasr_stored_options['stars_title_exclude_pages']);
91
  define('YASR_STARS_TITLE_WHERE', $yasr_stored_options['stars_title_where']);
92
  } else {
93
  define('YASR_STARS_TITLE_WHAT', null);
94
+ define('YASR_STARS_TITLE_EXCLUDE_PAGES', null);
95
  define('YASR_STARS_TITLE_WHERE', null);
96
  }
97
 
public/classes/YasrPublicFilters.php CHANGED
@@ -374,6 +374,10 @@ class YasrPublicFilters {
374
  if(in_the_loop()) {
375
  $post_id = get_the_ID();
376
 
 
 
 
 
377
  $content_after_title = false;
378
 
379
  if (YASR_STARS_TITLE_WHAT === 'visitor_rating') {
@@ -406,21 +410,27 @@ class YasrPublicFilters {
406
  $vv_widget .= "<span class='yasr-stars-title-average'>$average_rating ($number_of_votes)</span>";
407
 
408
  //Use this hook to customize widget overall
409
- //if doesn't exists a filter for yasr_title_overall_widget, put $vv_widget into $content_after_title
410
  $content_after_title = apply_filters('yasr_title_vv_widget', $vv_widget);
411
  }
412
 
413
- if ( YASR_STARS_TITLE_WHAT === 'overall_rating' ) {
414
  $overall_rating = YasrDatabaseRatings::getOverallRating($post_id);
415
- $overall_rating_obj = new YasrOverallRating(false, false);
416
 
417
- $overall_widget = $overall_rating_obj->returnHtml(16, $post_id, 'yasr-stars-title');
418
- $overall_widget .= "<span class='yasr-stars-title-average'>$overall_rating</span>";
419
 
 
 
 
 
 
 
 
420
 
421
  //Use this hook to customize widget overall
422
  //if doesn't exists a filter for yasr_title_overall_widget, put $overall_widget into $content_after_title
423
- $content_after_title = apply_filters('yasr_title_overall_widget', $overall_widget);
424
  }
425
 
426
  //if only in archive pages
374
  if(in_the_loop()) {
375
  $post_id = get_the_ID();
376
 
377
+ if(get_post_type($post_id) === 'page' && YASR_STARS_TITLE_EXCLUDE_PAGES === 'yes') {
378
+ return $title;
379
+ }
380
+
381
  $content_after_title = false;
382
 
383
  if (YASR_STARS_TITLE_WHAT === 'visitor_rating') {
410
  $vv_widget .= "<span class='yasr-stars-title-average'>$average_rating ($number_of_votes)</span>";
411
 
412
  //Use this hook to customize widget overall
413
+ //if doesn't exists a filter for yasr_title_vv_widget, put $vv_widget into $content_after_title
414
  $content_after_title = apply_filters('yasr_title_vv_widget', $vv_widget);
415
  }
416
 
417
+ if (YASR_STARS_TITLE_WHAT === 'overall_rating') {
418
  $overall_rating = YasrDatabaseRatings::getOverallRating($post_id);
 
419
 
420
+ //first, overall widget contains overall rating
421
+ $overall_widget = $overall_rating;
422
 
423
+ //only if overall rating > 0
424
+ if($overall_rating > 0) {
425
+ $overall_rating_obj = new YasrOverallRating(false, false);
426
+
427
+ $overall_widget = $overall_rating_obj->returnHtml(16, $post_id, 'yasr-stars-title', $overall_rating);
428
+ $overall_widget .= "<span class='yasr-stars-title-average'>$overall_rating</span>";
429
+ }
430
 
431
  //Use this hook to customize widget overall
432
  //if doesn't exists a filter for yasr_title_overall_widget, put $overall_widget into $content_after_title
433
+ $content_after_title = apply_filters('yasr_title_overall_widget', $overall_widget, $overall_rating);
434
  }
435
 
436
  //if only in archive pages
readme.txt CHANGED
@@ -3,9 +3,9 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
  Tags: rating, rate post, rate page, star rating, google rating, votes
4
  Requires at least: 4.9.0
5
  Contributors: Dudo
6
- Tested up to: 5.5
7
  Requires PHP: 5.3
8
- Stable tag: 2.4.5
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
@@ -168,6 +168,13 @@ If doesn't, you should work on your seo reputation.
168
 
169
  The full changelog can be found in the plugin's directory. Recent entries:
170
 
 
 
 
 
 
 
 
171
  = 2.4.5 =
172
  FIXED: %overall_rating% pattern didn't work for custom text
173
  FIXED: fixed link in yasr_most_or_highest_rated_posts
3
  Tags: rating, rate post, rate page, star rating, google rating, votes
4
  Requires at least: 4.9.0
5
  Contributors: Dudo
6
+ Tested up to: 5.5.2
7
  Requires PHP: 5.3
8
+ Stable tag: 2.4.6
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
168
 
169
  The full changelog can be found in the plugin's directory. Recent entries:
170
 
171
+ = 2.4.6 =
172
+ NEW OPTION: Is now possible to exclude pages when stars next the title are enabled
173
+ TWEAKED: changed classname from yasr-container-custom-text-and-visitor-rating to yasr-custom-text-vv-before
174
+ TWEAKED: span 'yasr-custom-text-before-visitor-rating' removed
175
+ TWEAKED: added hooks yasr_vv_cookie and yasr_mv_cookie to filter cookies name
176
+ TWEAKED: minor changes
177
+
178
  = 2.4.5 =
179
  FIXED: %overall_rating% pattern didn't work for custom text
180
  FIXED: fixed link in yasr_most_or_highest_rated_posts
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: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
- * Version: 2.4.5
8
  * Author: Dario Curvino
9
  * Author URI: https://dariocurvino.it/
10
  * Text Domain: yet-another-stars-rating
@@ -76,7 +76,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
76
  yasr_fs();
77
  // Signal that SDK was initiated.
78
  do_action( 'yasr_fs_loaded' );
79
- define( 'YASR_VERSION_NUM', '2.4.5' );
80
  //Plugin absolute path
81
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
82
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
+ * Version: 2.4.6
8
  * Author: Dario Curvino
9
  * Author URI: https://dariocurvino.it/
10
  * Text Domain: yet-another-stars-rating
76
  yasr_fs();
77
  // Signal that SDK was initiated.
78
  do_action( 'yasr_fs_loaded' );
79
+ define( 'YASR_VERSION_NUM', '2.4.6' );
80
  //Plugin absolute path
81
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
82
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );