Yasr – Yet Another Stars Rating - Version 2.5.3

Version Description

  • FIX: in Yet Another Stars Rating: Stats -> Overall Rating only posts with rating > 0 are shown
Download this release

Release Info

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

Code changes from version 2.5.2 to 2.5.3

changelog.txt CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  = 2.3.9 =
2
  * FIXED: yasr_visitor_votes readonly didn't show up if load results with ajax is enabled
3
  * FIXED: missing fragment error if gutenber used
1
+ = 2.4.0 =
2
+ * NEW FEATURE: is now possible to customize the itemType Name: if empty, post title will be used instead.
3
+ * TWEAKED: Custom text to show when an user has already voted now shows up even for logged in users
4
+ * TWEAKED: Added new hooks: yasr_filter_schema_title and yasr_below_panel (for gutenberg)
5
+ * TWEAKED: admin .js files are now bundled into a single one
6
+ * TWEAKED: support for IE11 (will be dropped in 12 months)
7
+
8
+
9
  = 2.3.9 =
10
  * FIXED: yasr_visitor_votes readonly didn't show up if load results with ajax is enabled
11
  * FIXED: missing fragment error if gutenber used
includes/classes/YasrDatabaseRatings.php CHANGED
@@ -66,7 +66,8 @@ class YasrDatabaseRatings {
66
  FROM $wpdb->postmeta as pm,
67
  $wpdb->posts as p
68
  WHERE pm.meta_key = 'yasr_overall_rating'
69
- AND p.ID = pm.post_id";
 
70
 
71
  return $wpdb->get_results($query, ARRAY_A);
72
 
66
  FROM $wpdb->postmeta as pm,
67
  $wpdb->posts as p
68
  WHERE pm.meta_key = 'yasr_overall_rating'
69
+ AND p.ID = pm.post_id
70
+ AND pm.meta_value > 0";
71
 
72
  return $wpdb->get_results($query, ARRAY_A);
73
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
  Tags: rating, rate post, rate page, star rating, google rating, votes
4
  Requires at least: 4.9.0
5
  Contributors: Dudo
6
- Tested up to: 5.5.2
7
  Requires PHP: 5.3
8
- Stable tag: 2.5.2
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.5.2 =
185
  * NEW FEATURE: is now possible delete overall rating data in Yet Another Stars Rating -> Stats -> Overall Rating
186
  * FIXED: Schema title come with rating string if "Enable stars next to the title?" is enabled
@@ -250,12 +253,5 @@ be used to customize the shortcodes.
250
  * FIXED: minor fix if more yasr_visitor_votes with different differents post_id are used in the same page
251
 
252
 
253
- = 2.4.0 =
254
- * NEW FEATURE: is now possible to customize the itemType Name: if empty, post title will be used instead-
255
- * TWEAKED: Custom text to show when an user has already voted now shows up even for logged in users
256
- * TWEAKED: Added new hooks: yasr_filter_schema_title and yasr_below_panel (for gutenberg)
257
- * TWEAKED: admin .js files are now bundled into a single one
258
- * TWEAKED: support for IE11 (will be dropped in 12 months)
259
-
260
  = Additional Info =
261
  See credits.txt file
3
  Tags: rating, rate post, rate page, star rating, google rating, votes
4
  Requires at least: 4.9.0
5
  Contributors: Dudo
6
+ Tested up to: 5.5.3
7
  Requires PHP: 5.3
8
+ Stable tag: 2.5.3
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.5.3 =
185
+ * FIX: in Yet Another Stars Rating: Stats -> Overall Rating only posts with rating > 0 are shown
186
+
187
  = 2.5.2 =
188
  * NEW FEATURE: is now possible delete overall rating data in Yet Another Stars Rating -> Stats -> Overall Rating
189
  * FIXED: Schema title come with rating string if "Enable stars next to the title?" is enabled
253
  * FIXED: minor fix if more yasr_visitor_votes with different differents post_id are used in the same page
254
 
255
 
 
 
 
 
 
 
 
256
  = Additional Info =
257
  See credits.txt file
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.5.2
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.5.2' );
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.5.3
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.5.3' );
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__ );