Yasr – Yet Another Stars Rating - Version 2.4.9

Version Description

  • FIXED: Removed unnecessary closing div for yasr_visitor_votes shortcode
Download this release

Release Info

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

Code changes from version 2.4.8 to 2.4.9

includes/shortcodes/classes/YasrVisitorVotes.php CHANGED
@@ -418,7 +418,7 @@ class YasrVisitorVotes extends YasrShortcode {
418
  $this->shortcode_html .= self::showTextBelowStars($cookie_value, $post_id);
419
  }
420
  $this->shortcode_html .= '</div>'; //Close yasr-visitor-votes-after-stars
421
- $this->shortcode_html .= '</div></div>'; //close all
422
  $this->shortcode_html .= '<!--End Yasr Visitor Votes Shortcode-->';
423
 
424
  return $this->shortcode_html;
418
  $this->shortcode_html .= self::showTextBelowStars($cookie_value, $post_id);
419
  }
420
  $this->shortcode_html .= '</div>'; //Close yasr-visitor-votes-after-stars
421
+ $this->shortcode_html .= '</div>'; //close all
422
  $this->shortcode_html .= '<!--End Yasr Visitor Votes Shortcode-->';
423
 
424
  return $this->shortcode_html;
includes/yasr-includes-init.php CHANGED
@@ -65,7 +65,7 @@ $yasr_stored_options = get_option('yasr_general_options');
65
 
66
  global $yasr_stored_options;
67
 
68
- if(isset($yasr_stored_options['stars_title'])) {
69
  define('YASR_AUTO_INSERT_ENABLED', (int)$yasr_stored_options['auto_insert_enabled']);
70
  } else {
71
  define('YASR_AUTO_INSERT_ENABLED', null);
65
 
66
  global $yasr_stored_options;
67
 
68
+ if(isset($yasr_stored_options['auto_insert_enabled'])) {
69
  define('YASR_AUTO_INSERT_ENABLED', (int)$yasr_stored_options['auto_insert_enabled']);
70
  } else {
71
  define('YASR_AUTO_INSERT_ENABLED', null);
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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.4.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,40 +181,43 @@ 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.4.8 =
185
  * Removed YasrSettings file from svn repo
186
 
187
  = 2.4.7 =
188
- NEW FEATURE: book itemType now supports these values:
 
189
  * author
190
  * bookEdition
191
  * BookFormat
192
  * ISBN
193
  * numberOfPages
194
- NEW FEATURE: movie itemType now supports these values:
195
  * actor
196
  * director
197
  * Duration
198
  * dateCreated
199
- TWEAKED: added hooks yasr_vv_saved_text and yasr_mv_saved_text to filter text showed after a rating is saved
200
- TWEAKED: added hooks yasr_vv_txt_before and yasr_vv_text_after to filter text showed before or after the star ratings
201
- TWEAKED: code cleanup in setting page
202
- FIX: check cookie name to use hooks added in version 2.4.6
203
- FIX: on fresh install, with php 7.4, a notice is returned
204
 
205
  = 2.4.6 =
206
- NEW OPTION: Is now possible to exclude pages when stars next the title are enabled
207
- TWEAKED: changed classname from yasr-container-custom-text-and-visitor-rating to yasr-custom-text-vv-before
208
- TWEAKED: span 'yasr-custom-text-before-visitor-rating' removed
209
- TWEAKED: added hooks yasr_vv_cookie and yasr_mv_cookie to filter cookies name
210
 
211
  = 2.4.5 =
212
- FIXED: %overall_rating% pattern didn't work for custom text
213
- FIXED: fixed link in yasr_most_or_highest_rated_posts
214
- FIXED: warning in yasr-settings-functions-multiset.php
215
  TWEAKED: minor changes
216
 
217
-
218
  = 2.4.4 =
219
  * TWEAKED: added yasr_auto_insert_exclude_cpt hook
220
  * TWEAKED: code cleanup
5
  Contributors: Dudo
6
  Tested up to: 5.5.2
7
  Requires PHP: 5.3
8
+ Stable tag: 2.4.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.4.9 =
185
+ * FIXED: Removed unnecessary closing div for yasr_visitor_votes shortcode
186
+
187
  = 2.4.8 =
188
  * Removed YasrSettings file from svn repo
189
 
190
  = 2.4.7 =
191
+ * NEW FEATURE: Added new fields for these itemTypes:
192
+ #### Book
193
  * author
194
  * bookEdition
195
  * BookFormat
196
  * ISBN
197
  * numberOfPages
198
+ #### Movie
199
  * actor
200
  * director
201
  * Duration
202
  * dateCreated
203
+ * TWEAKED: added hooks yasr_vv_saved_text and yasr_mv_saved_text to filter text showed after a rating is saved
204
+ * TWEAKED: added hooks yasr_vv_txt_before and yasr_vv_text_after to filter text showed before or after the star ratings
205
+ * TWEAKED: code cleanup in setting page
206
+ * FIX: check cookie name to use hooks added in version 2.4.6
207
+ * FIX: on fresh install, with php 7.4, a notice is returned
208
 
209
  = 2.4.6 =
210
+ * NEW OPTION: Is now possible to exclude pages when stars next the title are enabled
211
+ * TWEAKED: changed classname from yasr-container-custom-text-and-visitor-rating to yasr-custom-text-vv-before
212
+ * TWEAKED: span 'yasr-custom-text-before-visitor-rating' removed
213
+ * TWEAKED: added hooks yasr_vv_cookie and yasr_mv_cookie to filter cookies name
214
 
215
  = 2.4.5 =
216
+ * FIXED: %overall_rating% pattern didn't work for custom text
217
+ * FIXED: fixed link in yasr_most_or_highest_rated_posts
218
+ * FIXED: warning in yasr-settings-functions-multiset.php
219
  TWEAKED: minor changes
220
 
 
221
  = 2.4.4 =
222
  * TWEAKED: added yasr_auto_insert_exclude_cpt hook
223
  * TWEAKED: code cleanup
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.4.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.4.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.4.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.4.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__ );