Yasr – Yet Another Stars Rating - Version 1.9.1

Version Description

  • FIXED: In some (rare) case, overall rating get empty with Gutenberg
Download this release

Release Info

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

Code changes from version 1.9.0 to 1.9.1

js/src/yasr-guten-blocks.js CHANGED
@@ -64,7 +64,7 @@ const yasrVisitorVotesDescription = __('This is the star set where your users wi
64
//the meta filed returns always undefined
65
//see this bug https://github.com/WordPress/gutenberg/issues/4989
66
overallRatingMeta: {
67
- type: 'string',
68
source: 'meta',
69
meta: 'yasr_overall_rating'
70
},
@@ -92,6 +92,7 @@ const yasrVisitorVotesDescription = __('This is the star set where your users wi
92
93
if (overallRatingAttribute === 0) {
94
overallRating = overallRatingMeta;
95
}
96
else {
97
overallRating = overallRatingAttribute;
64
//the meta filed returns always undefined
65
//see this bug https://github.com/WordPress/gutenberg/issues/4989
66
overallRatingMeta: {
67
+ type: 'number',
68
source: 'meta',
69
meta: 'yasr_overall_rating'
70
},
92
93
if (overallRatingAttribute === 0) {
94
overallRating = overallRatingMeta;
95
+ setAttributes( { overallRatingAttribute: overallRatingMeta } );
96
}
97
else {
98
overallRating = overallRatingAttribute;
js/yasr-guten-blocks.js CHANGED
@@ -59,7 +59,7 @@ registerBlockType('yet-another-stars-rating/yasr-overall-rating', {
59
//the meta filed returns always undefined
60
//see this bug https://github.com/WordPress/gutenberg/issues/4989
61
overallRatingMeta: {
62
- type: 'string',
63
source: 'meta',
64
meta: 'yasr_overall_rating'
65
},
@@ -91,6 +91,7 @@ registerBlockType('yet-another-stars-rating/yasr-overall-rating', {
91
92
if (overallRatingAttribute === 0) {
93
overallRating = overallRatingMeta;
94
} else {
95
overallRating = overallRatingAttribute;
96
}
59
//the meta filed returns always undefined
60
//see this bug https://github.com/WordPress/gutenberg/issues/4989
61
overallRatingMeta: {
62
+ type: 'number',
63
source: 'meta',
64
meta: 'yasr_overall_rating'
65
},
91
92
if (overallRatingAttribute === 0) {
93
overallRating = overallRatingMeta;
94
+ setAttributes({ overallRatingAttribute: overallRatingMeta });
95
} else {
96
overallRating = overallRatingAttribute;
97
}
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.3.0
5
Contributors: Dudo
6
Tested up to: 5.1
7
Requires PHP: 5.3
8
- Stable tag: 1.9.0
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!
@@ -18,14 +18,17 @@ Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-gener
18
= How To use =
19
20
= Reviewer Vote =
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.
27
Again, this can be placed automatically at the beginning or the end of each post; the option is in "Settings" -> "Yet Another Stars Rating: Settings".
28
- This may not works if you use a caching plugin.
29
30
= Multi Set =
31
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",
@@ -124,6 +127,9 @@ 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.9.0 =
128
* NEW FEATURE: yasr_visitor_votes is now a Gutenberg block
129
* FIXED: In Gutenberg, when using yasr_overall_rating block, if post is rated and size or post_id is changed, stars got full filled
@@ -170,4 +176,4 @@ External Libraries: [Rater](https://github.com/fredolss/rater-js)
170
[tippy](https://atomiks.github.io/tippyjs/)
171
172
Svg star icon made by [Freepik](http://www.freepik.com)
173
- 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.1
7
Requires PHP: 5.3
8
+ Stable tag: 1.9.1
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!
18
= How To use =
19
20
= Reviewer Vote =
21
+ 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
22
+ be able to insert the overall rating.
23
+ With the new Guteneberg editor, just click on the "+" icon to add a block and search for Yasr Overall Rating.
24
+ You can either place the overall rating automatically at the beginning or the end of a post (look in "Settings"
25
-> "Yet Another Stars Rating: Settings"), or wherever you want in the page using the shortcode [yasr_overall_rating] (easily added through the visual editor).
26
27
= Visitor Votes =
28
You can give your users the ability to vote, pasting the shortcode [yasr_visitor_votes] where you want the stars to appear.
29
+ If you're using the new Gutenberg editor, just click on the "+" icon to add a block and search for Yasr Visitor Votes
30
Again, this can be placed automatically at the beginning or the end of each post; the option is in "Settings" -> "Yet Another Stars Rating: Settings".
31
+ [See the supported caching plugins](https://wordpress.org/plugins/yet-another-stars-rating/#does%20it%20work%20with%20caching%20plugins%3F)
32
33
= Multi Set =
34
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",
127
128
The full changelog can be found in the plugin's directory. Recent entries:
129
130
+ = 1.9.1 =
131
+ * FIXED: In some (rare) case, overall rating get empty with Gutenberg
132
+
133
= 1.9.0 =
134
* NEW FEATURE: yasr_visitor_votes is now a Gutenberg block
135
* FIXED: In Gutenberg, when using yasr_overall_rating block, if post is rated and size or post_id is changed, stars got full filled
176
[tippy](https://atomiks.github.io/tippyjs/)
177
178
Svg star icon made by [Freepik](http://www.freepik.com)
179
+ from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/)
yet-another-stars-rating.php CHANGED
@@ -4,9 +4,9 @@
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.9.0
8
* Author: Dario Curvino
9
- * Author URI: https://yetanotherstarsrating.com/
10
* Text Domain: yet-another-stars-rating
11
* Domain Path: languages
12
* License: GPL2
@@ -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', '1.9.0' );
80
//Plugin relative path
81
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
82
//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.9.1
8
* Author: Dario Curvino
9
+ * Author URI: https://dariocurvino.it/
10
* Text Domain: yet-another-stars-rating
11
* Domain Path: languages
12
* License: GPL2
76
yasr_fs();
77
// Signal that SDK was initiated.
78
do_action( 'yasr_fs_loaded' );
79
+ define( 'YASR_VERSION_NUM', '1.9.1' );
80
//Plugin relative path
81
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
82
//Plugin RELATIVE PATH without slashes (just the directory's name)