Version Description
- FIXED: error in gutenberg editor that appear in some circumstances
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- admin/editor/yasr-editor-functions.php +21 -0
- readme.txt +4 -2
- yet-another-stars-rating.php +2 -2
admin/editor/yasr-editor-functions.php
CHANGED
@@ -82,6 +82,27 @@ function yasr_add_js_constant_gutenberg($hook) {
|
|
82 |
}
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
/****** Create 2 metaboxes in post and pages ******/
|
87 |
add_action('add_meta_boxes', 'yasr_add_metaboxes');
|
82 |
}
|
83 |
}
|
84 |
|
85 |
+
//Save auto insert value to yasrConstantGutenberg
|
86 |
+
add_filter('yasr_gutenberg_constants', 'yasr_gutenberg_auto_insert');
|
87 |
+
|
88 |
+
function yasr_gutenberg_auto_insert($constants_array) {
|
89 |
+
|
90 |
+
//add after
|
91 |
+
if (YASR_AUTO_INSERT_ENABLED === 1) {
|
92 |
+
$auto_insert = YASR_AUTO_INSERT_WHAT;
|
93 |
+
} else {
|
94 |
+
$auto_insert = 'disabled';
|
95 |
+
}
|
96 |
+
|
97 |
+
$auto_insert_array = array (
|
98 |
+
'autoInsert' => $auto_insert
|
99 |
+
);
|
100 |
+
|
101 |
+
return $constants_array + $auto_insert_array;
|
102 |
+
}
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
|
107 |
/****** Create 2 metaboxes in post and pages ******/
|
108 |
add_action('add_meta_boxes', 'yasr_add_metaboxes');
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.9.0
|
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.4.
|
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
|
@@ -168,10 +168,12 @@ If doesn't, you should work on your seo reputation.
|
|
168 |
|
169 |
The full changelog can be found in the plugin's directory. Recent entries:
|
170 |
|
|
|
|
|
|
|
171 |
= 2.4.1 =
|
172 |
* FIXED: minor fix if more yasr_visitor_votes with different differents post_id are used in the same page
|
173 |
|
174 |
-
|
175 |
= 2.4.0 =
|
176 |
* NEW FEATURE: is now possible to customize the itemType Name: if empty, post title will be used instead-
|
177 |
* TWEAKED: Custom text to show when an user has already voted now shows up even for logged in users
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.4.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
|
168 |
|
169 |
The full changelog can be found in the plugin's directory. Recent entries:
|
170 |
|
171 |
+
= 2.4.2 =
|
172 |
+
* FIXED: error in gutenberg editor that appear in some circumstances
|
173 |
+
|
174 |
= 2.4.1 =
|
175 |
* FIXED: minor fix if more yasr_visitor_votes with different differents post_id are used in the same page
|
176 |
|
|
|
177 |
= 2.4.0 =
|
178 |
* NEW FEATURE: is now possible to customize the itemType Name: if empty, post title will be used instead-
|
179 |
* TWEAKED: Custom text to show when an user has already voted now shows up even for logged in users
|
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 |
* 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.
|
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.2
|
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.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__ );
|