Yasr – Yet Another Stars Rating - Version 1.3.3

Version Description

  • FIXED: security fix
Download this release

Release Info

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

Code changes from version 1.3.2 to 1.3.3

lib/yasr-ajax-functions.php CHANGED
@@ -31,7 +31,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
31
 
32
  function yasr_insert_overall_rating_callback() {
33
 
34
- if (isset($_POST['rating']) && ($_POST['post_id']) && $_POST['post_id'] != '') {
35
  $rating = $_POST['rating'];
36
  $post_id = $_POST['post_id'];
37
  $nonce = $_POST['nonce'];
@@ -66,7 +66,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
66
  'overall_rating' => $rating,
67
  ),
68
  array('post_id' => $post_id),
69
- array('%s')
70
  );
71
 
72
  //If update result fails this is a new post or post has no visitor ratings
31
 
32
  function yasr_insert_overall_rating_callback() {
33
 
34
+ if (isset($_POST['rating']) && isset($_POST['post_id']) && $_POST['post_id'] != '') {
35
  $rating = $_POST['rating'];
36
  $post_id = $_POST['post_id'];
37
  $nonce = $_POST['nonce'];
66
  'overall_rating' => $rating,
67
  ),
68
  array('post_id' => $post_id),
69
+ array('%s', '%d')
70
  );
71
 
72
  //If update result fails this is a new post or post has no visitor ratings
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
4
  Requires at least: 4.3.0
5
  Contributors: Dudo
6
  Tested up to: 4.5.2
7
- Stable tag: 1.3.2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
@@ -113,7 +113,7 @@ Of course not: you can easily add it on the visual editor just by clicking the "
113
 
114
  The full changelog can be found in the plugin's directory. Recent entries:
115
 
116
- = 1.3.2 =
117
  * FIXED: security fix
118
 
119
  = 1.3.1 =
4
  Requires at least: 4.3.0
5
  Contributors: Dudo
6
  Tested up to: 4.5.2
7
+ Stable tag: 1.3.3
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
113
 
114
  The full changelog can be found in the plugin's directory. Recent entries:
115
 
116
+ = 1.3.3 =
117
  * FIXED: security fix
118
 
119
  = 1.3.1 =
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: Yet Another Stars Rating turn your WordPress into a complete review website.
6
- * Version: 1.3.2
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
@@ -31,7 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
31
 
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
- define('YASR_VERSION_NUM', '1.3.2');
35
 
36
  //Plugin relative path
37
  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: Yet Another Stars Rating turn your WordPress into a complete review website.
6
+ * Version: 1.3.3
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
31
 
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
+ define('YASR_VERSION_NUM', '1.3.3');
35
 
36
  //Plugin relative path
37
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );