Version Description
- FIXED: empty schema field can return error on existing post or page.
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 2.2.8 |
Comparing to | |
See all releases |
Code changes from version 2.2.7 to 2.2.8
lib/YasrRichSnippetAdditionalFields.php
CHANGED
@@ -12,8 +12,6 @@ class YasrRichSnippetAdditionalFields {
|
|
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)) {
|
@@ -25,7 +23,7 @@ class YasrRichSnippetAdditionalFields {
|
|
25 |
foreach ($array_item_type_info as $item_type) {
|
26 |
//avoid undefined
|
27 |
if(!isset($saved_data[$item_type])) {
|
28 |
-
$saved_data[$item_type] =
|
29 |
}
|
30 |
}
|
31 |
|
12 |
|
13 |
$review_choosen = yasr_get_itemType();
|
14 |
|
|
|
|
|
15 |
$saved_data = get_post_meta(get_the_ID(), 'yasr_schema_additional_fields', true);
|
16 |
//avoid undefined
|
17 |
if(!is_array($saved_data)) {
|
23 |
foreach ($array_item_type_info as $item_type) {
|
24 |
//avoid undefined
|
25 |
if(!isset($saved_data[$item_type])) {
|
26 |
+
$saved_data[$item_type] = '';
|
27 |
}
|
28 |
}
|
29 |
|
lib/admin/editor/yasr-editor-functions.php
CHANGED
@@ -130,7 +130,7 @@ function yasr_add_metaboxes() {
|
|
130 |
foreach ($post_type_where_display_metabox as $post_type) {
|
131 |
add_meta_box(
|
132 |
'yasr_metabox_below_editor_metabox',
|
133 |
-
__('Yet Another Stars Rating
|
134 |
'yasr_metabox_below_editor_metabox_callback',
|
135 |
$post_type,
|
136 |
'normal',
|
130 |
foreach ($post_type_where_display_metabox as $post_type) {
|
131 |
add_meta_box(
|
132 |
'yasr_metabox_below_editor_metabox',
|
133 |
+
__('Yet Another Stars Rating', 'yet-another-stars-rating'),
|
134 |
'yasr_metabox_below_editor_metabox_callback',
|
135 |
$post_type,
|
136 |
'normal',
|
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.
|
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.7 =
|
129 |
* FIXED: illegal offset warning
|
130 |
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.2.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
|
125 |
|
126 |
The full changelog can be found in the plugin's directory. Recent entries:
|
127 |
|
128 |
+
= 2.2.8 =
|
129 |
+
* FIXED: empty schema field can return error on existing post or page.
|
130 |
+
|
131 |
= 2.2.7 =
|
132 |
* FIXED: illegal offset warning
|
133 |
|
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.
|
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.
|
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.8
|
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.8' );
|
81 |
//Plugin relative path
|
82 |
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
|
83 |
//Plugin RELATIVE PATH without slashes (just the directory's name)
|