Yasr – Yet Another Stars Rating - Version 2.2.7

Version Description

  • FIXED: illegal offset warning
Download this release

Release Info

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

Code changes from version 2.2.6 to 2.2.7

lib/YasrRichSnippetAdditionalFields.php CHANGED
@@ -11,7 +11,14 @@ class YasrRichSnippetAdditionalFields {
11
function additional_schema($rich_snippet) {
12
13
$review_choosen = yasr_get_itemType();
14
$saved_data = get_post_meta(get_the_ID(), 'yasr_schema_additional_fields', true);
15
16
$array_item_type_info = json_decode(YASR_SUPPORTED_SCHEMA_TYPES_ADDITIONAL_FIELDS);
17
11
function additional_schema($rich_snippet) {
12
13
$review_choosen = yasr_get_itemType();
14
+
15
+ //avoid undefined
16
+ //$saved_data = array();
17
$saved_data = get_post_meta(get_the_ID(), 'yasr_schema_additional_fields', true);
18
+ //avoid undefined
19
+ if(!is_array($saved_data)) {
20
+ $saved_data = array();
21
+ }
22
23
$array_item_type_info = json_decode(YASR_SUPPORTED_SCHEMA_TYPES_ADDITIONAL_FIELDS);
24
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.9.0
5
Contributors: Dudo
6
Tested up to: 5.4
7
Requires PHP: 5.3
8
- Stable tag: 2.2.6
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
@@ -125,6 +125,9 @@ If doesn't, it's suggested to ask in a SEO oriented forum.
125
126
The full changelog can be found in the plugin's directory. Recent entries:
127
128
= 2.2.6 =
129
* TWEAKED: in the editor screen, rich snippet info are moved below the editor
130
* NEW FEATURE: Added new fields for these itemTypes:
5
Contributors: Dudo
6
Tested up to: 5.4
7
Requires PHP: 5.3
8
+ Stable tag: 2.2.7
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
125
126
The full changelog can be found in the plugin's directory. Recent entries:
127
128
+ = 2.2.7 =
129
+ * FIXED: illegal offset warning
130
+
131
= 2.2.6 =
132
* TWEAKED: in the editor screen, rich snippet info are moved below the editor
133
* NEW FEATURE: Added new fields for these itemTypes:
yet-another-stars-rating.php CHANGED
@@ -5,7 +5,7 @@
5
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
* Description: Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and
7
* testimonials to your website posts, pages and CPT, without affecting its speed.
8
- * Version: 2.2.6
9
* Author: Dario Curvino
10
* Author URI: https://dariocurvino.it/
11
* Text Domain: yet-another-stars-rating
@@ -77,7 +77,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
77
yasr_fs();
78
// Signal that SDK was initiated.
79
do_action( 'yasr_fs_loaded' );
80
- define( 'YASR_VERSION_NUM', '2.2.6' );
81
//Plugin relative path
82
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
83
//Plugin RELATIVE PATH without slashes (just the directory's name)
5
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
* Description: Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and
7
* testimonials to your website posts, pages and CPT, without affecting its speed.
8
+ * Version: 2.2.7
9
* Author: Dario Curvino
10
* Author URI: https://dariocurvino.it/
11
* Text Domain: yet-another-stars-rating
77
yasr_fs();
78
// Signal that SDK was initiated.
79
do_action( 'yasr_fs_loaded' );
80
+ define( 'YASR_VERSION_NUM', '2.2.7' );
81
//Plugin relative path
82
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
83
//Plugin RELATIVE PATH without slashes (just the directory's name)