Yasr – Yet Another Stars Rating - Version 2.6.9

Version Description

  • FIXED: error YasrMultiSetData.php on line 61 if multiSet are not used
Download this release

Release Info

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

Code changes from version 2.6.8 to 2.6.9

includes/classes/YasrMultiSetData.php CHANGED
@@ -58,8 +58,8 @@ class YasrMultiSetData {
58
  ORDER BY set_id
59
  LIMIT 1");
60
 
61
- if(property_exists($result[0], 'set_id')) {
62
- $set_id = (int)$result[0]->set_id;
63
  }
64
 
65
  return $set_id;
58
  ORDER BY set_id
59
  LIMIT 1");
60
 
61
+ if(is_array($result) && !empty($result[0]) && property_exists($result[0], 'set_id')) {
62
+ $set_id = (int) $result[0]->set_id;
63
  }
64
 
65
  return $set_id;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 5.0
5
  Contributors: Dudo
6
  Tested up to: 5.7
7
  Requires PHP: 5.4
8
- Stable tag: 2.6.8
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
@@ -181,6 +181,9 @@ If doesn't, you should work on your seo reputation.
181
 
182
  The full changelog can be found in the plugin's directory. Recent entries:
183
 
 
 
 
184
  = 2.6.8 =
185
  * FIX: in some circumstances, the text "you've already voted" displayed even in when this is not true
186
  * TWEAKED: YASR is now saving a lot less data in _postmeta table
5
  Contributors: Dudo
6
  Tested up to: 5.7
7
  Requires PHP: 5.4
8
+ Stable tag: 2.6.9
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
181
 
182
  The full changelog can be found in the plugin's directory. Recent entries:
183
 
184
+ = 2.6.9 =
185
+ * FIXED: error YasrMultiSetData.php on line 61 if multiSet are not used
186
+
187
  = 2.6.8 =
188
  * FIX: in some circumstances, the text "you've already voted" displayed even in when this is not true
189
  * TWEAKED: YASR is now saving a lot less data in _postmeta table
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: 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.6.8
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', '2.6.8' );
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__ );
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.6.9
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.6.9' );
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__ );