Yasr – Yet Another Stars Rating - Version 1.9.7

Version Description

  • FIXED: Impossibile to create a new post if used classic editor
Download this release

Release Info

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

Code changes from version 1.9.6 to 1.9.7

lib/yasr-db-functions.php CHANGED
@@ -806,7 +806,8 @@ function yasr_insert_overall_rating_callback($post_id) {
806
if (isset($_POST['yasr_overall_rating']) && isset($_POST['yasr_nonce_overall_rating'])) {
807
$rating = $_POST['yasr_overall_rating'];
808
$nonce = $_POST['yasr_nonce_overall_rating'];
809
-
810
}
811
812
if (!current_user_can('publish_posts')) {
@@ -814,7 +815,7 @@ function yasr_insert_overall_rating_callback($post_id) {
814
}
815
816
if (!wp_verify_nonce($nonce, 'yasr_nonce_overall_rating_action')) {
817
- die('Security check');
818
}
819
820
$rating = (float) $rating;
@@ -869,7 +870,7 @@ function yasr_insert_review_type_callback($post_id) {
869
}
870
871
if (!wp_verify_nonce($nonce, 'yasr_nonce_review_type_action')) {
872
- die('Security check');
873
}
874
875
806
if (isset($_POST['yasr_overall_rating']) && isset($_POST['yasr_nonce_overall_rating'])) {
807
$rating = $_POST['yasr_overall_rating'];
808
$nonce = $_POST['yasr_nonce_overall_rating'];
809
+ } else {
810
+ return;
811
}
812
813
if (!current_user_can('publish_posts')) {
815
}
816
817
if (!wp_verify_nonce($nonce, 'yasr_nonce_overall_rating_action')) {
818
+ return;
819
}
820
821
$rating = (float) $rating;
870
}
871
872
if (!wp_verify_nonce($nonce, 'yasr_nonce_review_type_action')) {
873
+ return;
874
}
875
876
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.3.0
5
Contributors: Dudo
6
Tested up to: 5.2.1
7
Requires PHP: 5.3
8
- Stable tag: 1.9.6
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!
@@ -127,6 +127,9 @@ If doesn't, it's suggested to ask in a SEO oriented forum.
127
128
The full changelog can be found in the plugin's directory. Recent entries:
129
130
= 1.9.6 =
131
* NEW FEATURE: 3 Brand new Gutenberg Blocks!! Yasr: Top 10 By Visitor Votes, Yasr: Most Active Visitos and Yasr Most Active Authors!
132
* NEW FEATURE: Gutenberg Panel!
5
Contributors: Dudo
6
Tested up to: 5.2.1
7
Requires PHP: 5.3
8
+ Stable tag: 1.9.7
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!
127
128
The full changelog can be found in the plugin's directory. Recent entries:
129
130
+ = 1.9.7 =
131
+ * FIXED: Impossibile to create a new post if used classic editor
132
+
133
= 1.9.6 =
134
* NEW FEATURE: 3 Brand new Gutenberg Blocks!! Yasr: Top 10 By Visitor Votes, Yasr: Most Active Visitos and Yasr Most Active Authors!
135
* NEW FEATURE: Gutenberg Panel!
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: 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.6
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', '1.9.6' );
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.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', '1.9.7' );
80
//Plugin relative path
81
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
82
//Plugin RELATIVE PATH without slashes (just the directory's name)