Version Description
- FIXED: Minor changes
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 2.3.7 |
Comparing to | |
See all releases |
Code changes from version 2.3.6 to 2.3.7
- freemius/includes/class-freemius.php +6 -1
- includes/classes/YasrMultiSetData.php +2 -3
- readme.txt +12 -3
- yet-another-stars-rating.php +3 -4
freemius/includes/class-freemius.php
CHANGED
@@ -14310,7 +14310,12 @@
|
|
14310 |
* @return bool
|
14311 |
*/
|
14312 |
function is_user_in_admin() {
|
14313 |
-
return
|
|
|
|
|
|
|
|
|
|
|
14314 |
}
|
14315 |
|
14316 |
/**
|
14310 |
* @return bool
|
14311 |
*/
|
14312 |
function is_user_in_admin() {
|
14313 |
+
return (
|
14314 |
+
is_admin() &&
|
14315 |
+
! self::is_ajax() &&
|
14316 |
+
! self::is_cron() &&
|
14317 |
+
( 'admin-post.php' !== self::get_current_page() )
|
14318 |
+
);
|
14319 |
}
|
14320 |
|
14321 |
/**
|
includes/classes/YasrMultiSetData.php
CHANGED
@@ -228,7 +228,7 @@ class YasrMultiSetData {
|
|
228 |
if (!is_array($multiset_content)) {
|
229 |
return 0;
|
230 |
}
|
231 |
-
//default
|
232 |
$multiset_vote_sum = 0;
|
233 |
$multiset_rows_number = 0;
|
234 |
|
@@ -236,9 +236,8 @@ class YasrMultiSetData {
|
|
236 |
$multiset_vote_sum = $multiset_vote_sum + $set_content['average_rating'];
|
237 |
$multiset_rows_number = $multiset_rows_number+1;
|
238 |
}
|
239 |
-
$multiset_average = round($multiset_vote_sum/$multiset_rows_number, 1);
|
240 |
|
241 |
-
return $
|
242 |
}
|
243 |
|
244 |
}
|
228 |
if (!is_array($multiset_content)) {
|
229 |
return 0;
|
230 |
}
|
231 |
+
//default values
|
232 |
$multiset_vote_sum = 0;
|
233 |
$multiset_rows_number = 0;
|
234 |
|
236 |
$multiset_vote_sum = $multiset_vote_sum + $set_content['average_rating'];
|
237 |
$multiset_rows_number = $multiset_rows_number+1;
|
238 |
}
|
|
|
239 |
|
240 |
+
return round( $multiset_vote_sum / $multiset_rows_number, 1);
|
241 |
}
|
242 |
|
243 |
}
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.9.0
|
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.3.
|
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
|
@@ -22,7 +22,7 @@ website posts, pages and CPT, without affecting its speed.
|
|
22 |
= Reviewer Vote =
|
23 |
With the classic editor, when you create or update a page or a post, a box (metabox) will be available in the upper right corner where you'll
|
24 |
be able to insert the overall rating.
|
25 |
-
With the new
|
26 |
You can either place the overall rating automatically at the beginning or the end of a post (look in "Settings"
|
27 |
-> "Yet Another Stars Rating: Settings"), or wherever you want in the page using the shortcode [yasr_overall_rating] (easily added through the visual editor).
|
28 |
|
@@ -91,6 +91,7 @@ It is the vote that allows your visitors to vote: just paste this shortcode **[y
|
|
91 |
|
92 |
[Demo page for Overall Rating and Vistor Rating](https://yetanotherstarsrating.com/yasr-basics-shortcode/)
|
93 |
|
|
|
94 |
= What is "Multi Set"? =
|
95 |
It is the feature that makes YASR awesome. Multisets give the opportunity to score different aspects for each review: for example, if you're reviewing a videogame, you can create the aspects "Graphics", "Gameplay", "Story", etc. and give a vote for each one. To create a set, just go in "Settings" -> "Yet Another Stars Rating: Settings" and click on the "Multi Sets" tab. To insert it into a post, just paste the shortcode that YASR will create for you.
|
96 |
|
@@ -146,6 +147,9 @@ If doesn't, you should work on your seo reputation.
|
|
146 |
|
147 |
The full changelog can be found in the plugin's directory. Recent entries:
|
148 |
|
|
|
|
|
|
|
149 |
= 2.3.6 =
|
150 |
* FIXED: visitor multiset doesn't allow user to vote in some circumstances
|
151 |
* TWEAKED : minor changes in ajax call for yasr_visitor_votes
|
@@ -155,17 +159,20 @@ The full changelog can be found in the plugin's directory. Recent entries:
|
|
155 |
You may need to save again "Publisher name" and "Image Url"
|
156 |
* IMPROVED: code cleanup
|
157 |
|
|
|
158 |
= 2.3.4 =
|
159 |
* IMPROVED: added Software Application itemType
|
160 |
* IMPROVED: added Organization itemType
|
161 |
* IMPORVED: added reviewBody and description properties
|
162 |
* FIXED: "Your ratings" widget in admin dashboard
|
163 |
|
|
|
164 |
= 2.3.3 =
|
165 |
* FIXED: "Load results with AJAX" option works with all post types, not the "posts" one
|
166 |
* FIXED: CSS fix in settings pages
|
167 |
* FIXED: minor fix with multiSet
|
168 |
|
|
|
169 |
= 2.3.2 =
|
170 |
* FIXED: Uncaught TypeError randomly shows up in the browser console
|
171 |
* TWEAKED: removed deprecated multisite function
|
@@ -190,6 +197,7 @@ fields where reset
|
|
190 |
* ENHANCEMENT: rich snippet are returned only if a YASR shortcode is in the post or page
|
191 |
* ENHANCEMENT: changed classes names star-rating and star-value in yasr-star-rating and yasr-star-value. **DELETE YOUR BROWSER CACHE**
|
192 |
|
|
|
193 |
= 2.2.8 =
|
194 |
* FIXED: empty schema field can return error on existing post or page.
|
195 |
|
@@ -229,4 +237,5 @@ External Libraries: [Rater](https://github.com/fredolss/rater-js)
|
|
229 |
[tippy](https://atomiks.github.io/tippyjs/)
|
230 |
|
231 |
Flat star icon made by[Freepik](http://www.freepik.com)
|
232 |
-
from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/)
|
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.3.7
|
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
|
22 |
= Reviewer Vote =
|
23 |
With the classic editor, when you create or update a page or a post, a box (metabox) will be available in the upper right corner where you'll
|
24 |
be able to insert the overall rating.
|
25 |
+
With the new Guteneberg editor, just click on the "+" icon to add a block and search for Yasr Overall Rating.
|
26 |
You can either place the overall rating automatically at the beginning or the end of a post (look in "Settings"
|
27 |
-> "Yet Another Stars Rating: Settings"), or wherever you want in the page using the shortcode [yasr_overall_rating] (easily added through the visual editor).
|
28 |
|
91 |
|
92 |
[Demo page for Overall Rating and Vistor Rating](https://yetanotherstarsrating.com/yasr-basics-shortcode/)
|
93 |
|
94 |
+
|
95 |
= What is "Multi Set"? =
|
96 |
It is the feature that makes YASR awesome. Multisets give the opportunity to score different aspects for each review: for example, if you're reviewing a videogame, you can create the aspects "Graphics", "Gameplay", "Story", etc. and give a vote for each one. To create a set, just go in "Settings" -> "Yet Another Stars Rating: Settings" and click on the "Multi Sets" tab. To insert it into a post, just paste the shortcode that YASR will create for you.
|
97 |
|
147 |
|
148 |
The full changelog can be found in the plugin's directory. Recent entries:
|
149 |
|
150 |
+
= 2.3.7 =
|
151 |
+
* FIXED: Minor changes
|
152 |
+
|
153 |
= 2.3.6 =
|
154 |
* FIXED: visitor multiset doesn't allow user to vote in some circumstances
|
155 |
* TWEAKED : minor changes in ajax call for yasr_visitor_votes
|
159 |
You may need to save again "Publisher name" and "Image Url"
|
160 |
* IMPROVED: code cleanup
|
161 |
|
162 |
+
|
163 |
= 2.3.4 =
|
164 |
* IMPROVED: added Software Application itemType
|
165 |
* IMPROVED: added Organization itemType
|
166 |
* IMPORVED: added reviewBody and description properties
|
167 |
* FIXED: "Your ratings" widget in admin dashboard
|
168 |
|
169 |
+
|
170 |
= 2.3.3 =
|
171 |
* FIXED: "Load results with AJAX" option works with all post types, not the "posts" one
|
172 |
* FIXED: CSS fix in settings pages
|
173 |
* FIXED: minor fix with multiSet
|
174 |
|
175 |
+
|
176 |
= 2.3.2 =
|
177 |
* FIXED: Uncaught TypeError randomly shows up in the browser console
|
178 |
* TWEAKED: removed deprecated multisite function
|
197 |
* ENHANCEMENT: rich snippet are returned only if a YASR shortcode is in the post or page
|
198 |
* ENHANCEMENT: changed classes names star-rating and star-value in yasr-star-rating and yasr-star-value. **DELETE YOUR BROWSER CACHE**
|
199 |
|
200 |
+
|
201 |
= 2.2.8 =
|
202 |
* FIXED: empty schema field can return error on existing post or page.
|
203 |
|
237 |
[tippy](https://atomiks.github.io/tippyjs/)
|
238 |
|
239 |
Flat star icon made by[Freepik](http://www.freepik.com)
|
240 |
+
from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/)
|
241 |
+
|
yet-another-stars-rating.php
CHANGED
@@ -3,9 +3,8 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Yet Another Stars Rating
|
5 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
6 |
-
* Description:
|
7 |
-
*
|
8 |
-
* Version: 2.3.6
|
9 |
* Author: Dario Curvino
|
10 |
* Author URI: https://dariocurvino.it/
|
11 |
* Text Domain: yet-another-stars-rating
|
@@ -77,7 +76,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', '2.3.
|
81 |
//Plugin absolute path
|
82 |
//e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
|
83 |
define( 'YASR_ABSOLUTE_PATH', __DIR__ );
|
3 |
/**
|
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.3.7
|
|
|
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.3.7' );
|
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__ );
|