Yasr – Yet Another Stars Rating - Version 0.2.5

Version Description

  • Bug fix on multi set
Download this release

Release Info

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

Code changes from version 0.2.4 to 0.2.5

lib/yasr-ajax-functions.php CHANGED
@@ -80,7 +80,6 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
80
if(isset($_POST['set_id']) && isset($_POST['post_id'])) {
81
$set_type = $_POST['set_id'];
82
$post_id = $_POST['post_id'];
83
- $nonce_visitor = $_POST['nonce_visitor'];
84
}
85
else {
86
exit();
@@ -90,10 +89,6 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
90
wp_die( __( 'You do not have sufficient permissions to access this page.', 'yasr' ) );
91
}
92
93
- if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
94
- die( 'Security check' );
95
- }
96
-
97
global $wpdb;
98
99
$set_values=yasr_get_multi_set_values_and_field ($post_id, $set_type);
@@ -826,11 +821,16 @@ add_action( 'wp_ajax_yasr_change_log_page', 'yasr_change_log_page_callback' );
826
if(isset($_POST['rating']) && isset($_POST['post_id'])) {
827
$rating = $_POST['rating'];
828
$post_id = $_POST['post_id'];
829
}
830
else {
831
exit();
832
}
833
834
$row_exists_result=NULL; //Avoid Undefined variable notice
835
$new_row_result=NULL; ////Avoid Undefined variable notice
836
80
if(isset($_POST['set_id']) && isset($_POST['post_id'])) {
81
$set_type = $_POST['set_id'];
82
$post_id = $_POST['post_id'];
83
}
84
else {
85
exit();
89
wp_die( __( 'You do not have sufficient permissions to access this page.', 'yasr' ) );
90
}
91
92
global $wpdb;
93
94
$set_values=yasr_get_multi_set_values_and_field ($post_id, $set_type);
821
if(isset($_POST['rating']) && isset($_POST['post_id'])) {
822
$rating = $_POST['rating'];
823
$post_id = $_POST['post_id'];
824
+ $nonce_visitor = $_POST['nonce_visitor'];
825
}
826
else {
827
exit();
828
}
829
830
+ if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
831
+ die( 'Security check' );
832
+ }
833
+
834
$row_exists_result=NULL; //Avoid Undefined variable notice
835
$new_row_result=NULL; ////Avoid Undefined variable notice
836
readme.txt CHANGED
@@ -3,7 +3,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
Tags: Rating, Review, Star, Snippet, Rich snippet, Schema, Schema.org, Serp
4
Requires at least: 3.5
5
Tested up to: 3.9.1
6
- Stable tag: 0.2.4
7
License: GPL2
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -49,6 +49,9 @@ If with gd-star-rating you're using a different number of stars from the default
49
50
== Changelog ==
51
52
= 0.2.4 =
53
* Now user can choose what kind of snippet use, if AggregateRating or Review
54
3
Tags: Rating, Review, Star, Snippet, Rich snippet, Schema, Schema.org, Serp
4
Requires at least: 3.5
5
Tested up to: 3.9.1
6
+ Stable tag: 0.2.5
7
License: GPL2
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
49
50
== Changelog ==
51
52
+ = 0.2.5 =
53
+ * Bug fix on multi set
54
+
55
= 0.2.4 =
56
* Now user can choose what kind of snippet use, if AggregateRating or Review
57
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: Rating system with rich snippets
6
- * Version: 0.2.4
7
* Author: Dario Curvino
8
* Author URI: http://profiles.wordpress.org/dudo/
9
* License: GPL2
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
28
*/
29
30
31
- define('YASR_VERSION_NUM', '0.2.4');
32
33
//Plugin absolute path
34
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: Rating system with rich snippets
6
+ * Version: 0.2.5
7
* Author: Dario Curvino
8
* Author URI: http://profiles.wordpress.org/dudo/
9
* License: GPL2
28
*/
29
30
31
+ define('YASR_VERSION_NUM', '0.2.5');
32
33
//Plugin absolute path
34
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );