Yasr – Yet Another Stars Rating - Version 1.1.6

Version Description

Download this release

Release Info

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

Code changes from version 1.1.5 to 1.1.6

lib/yasr-functions.php CHANGED
@@ -308,19 +308,19 @@ add_filter('the_content', 'yasr_add_schema');
308
  //if is not jsonld (default case)
309
  if(YASR_SCHEMA_FORMAT != 'jsonld'){
310
 
311
- $schema=NULL; //To avoid undefined variable notice outside the loop
312
 
313
  $review_choosen = yasr_get_snippet_type();
314
 
315
- $schema = apply_filters( 'yasr_filter_schema_microdata', $review_choosen );
316
 
317
  //$schema = yasr_pro_microdata_reviews($review_choosen);
318
 
319
- if ($schema) {
320
 
321
  return $content . $schema;
322
 
323
- }
324
 
325
  if (YASR_SNIPPET == 'overall_rating') {
326
 
@@ -459,13 +459,13 @@ add_filter('the_content', 'yasr_add_schema');
459
 
460
  $rich_snippet["@context"] = "http://schema.org/";
461
 
462
- $schema = apply_filters( 'yasr_filter_schema_jsonld', $review_choosen );
463
 
464
  if ($schema) {
465
 
466
  return $content . $script_type . $schema . $end_script_type;
467
 
468
- }
469
 
470
  if (YASR_SNIPPET == 'overall_rating') {
471
 
308
  //if is not jsonld (default case)
309
  if(YASR_SCHEMA_FORMAT != 'jsonld'){
310
 
311
+ $schema=FALSE; //To avoid undefined variable notice outside the loop
312
 
313
  $review_choosen = yasr_get_snippet_type();
314
 
315
+ //$schema = apply_filters( 'yasr_filter_schema_microdata', $review_choosen );
316
 
317
  //$schema = yasr_pro_microdata_reviews($review_choosen);
318
 
319
+ /*if ($schema) {
320
 
321
  return $content . $schema;
322
 
323
+ }*/
324
 
325
  if (YASR_SNIPPET == 'overall_rating') {
326
 
459
 
460
  $rich_snippet["@context"] = "http://schema.org/";
461
 
462
+ /* $schema = apply_filters( 'yasr_filter_schema_jsonld', $review_choosen );
463
 
464
  if ($schema) {
465
 
466
  return $content . $script_type . $schema . $end_script_type;
467
 
468
+ }*/
469
 
470
  if (YASR_SNIPPET == 'overall_rating') {
471
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
  Tested up to: 4.4
7
- Stable tag: 1.1.5
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
@@ -110,6 +110,9 @@ Of course not: you can easily add it on the visual editor just by clicking on th
110
 
111
  == Changelog ==
112
 
 
 
 
113
  = 1.1.5 =
114
  * TWEAKED: removed usless add_actions
115
 
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
  Tested up to: 4.4
7
+ Stable tag: 1.1.6
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
110
 
111
  == Changelog ==
112
 
113
+ 1.1.6
114
+ * FIXED: Rich snippet non added in some cases
115
+
116
  = 1.1.5 =
117
  * TWEAKED: removed usless add_actions
118
 
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.1.5
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
- define('YASR_VERSION_NUM', '1.1.5');
36
 
37
  //Plugin relative path
38
  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.1.6
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
+ define('YASR_VERSION_NUM', '1.1.6');
36
 
37
  //Plugin relative path
38
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );