Version Description
- FIXED: Fatal error on first install
- TWEAKED: Flat stars set is the new default theme
- Minor changes
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
- changelog.txt +10 -0
- lib/yasr-admin-actions.php +1 -1
- lib/yasr-db-functions.php +2 -2
- readme.txt +6 -11
- yet-another-stars-rating.php +33 -46
changelog.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 1.1.9 =
|
2 |
* FIXED: yasr_visitor_votes doesn't get vote on mobile
|
3 |
|
1 |
+
= 1.2.1 =
|
2 |
+
* FIXED: wrong css class on ajax response if yasr_visitor_votes is used with a different size then default
|
3 |
+
|
4 |
+
= 1.2.0 =
|
5 |
+
* FIXED: if more then one visitor multiset for page were used only the last use to work
|
6 |
+
* TWEAKED: transient are used to cache ratings: this means that Yasr is faster then ever
|
7 |
+
* TWEAKED: shortcode creator is now above of tinymce. It now uses thickbox
|
8 |
+
* TWEAKED: added filter 'yasr_filter_ip' to filter stored ip address
|
9 |
+
* TWEAKED: code cleanup
|
10 |
+
|
11 |
= 1.1.9 =
|
12 |
* FIXED: yasr_visitor_votes doesn't get vote on mobile
|
13 |
|
lib/yasr-admin-actions.php
CHANGED
@@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
49 |
|
50 |
if(!array_key_exists('stars_set_free', $style_options)) {
|
51 |
|
52 |
-
$style_options['stars_set_free'] = '
|
53 |
|
54 |
}
|
55 |
|
49 |
|
50 |
if(!array_key_exists('stars_set_free', $style_options)) {
|
51 |
|
52 |
+
$style_options['stars_set_free'] = 'flat'; //..default value if not exists
|
53 |
|
54 |
}
|
55 |
|
lib/yasr-db-functions.php
CHANGED
@@ -121,7 +121,7 @@ function yasr_install() {
|
|
121 |
//Style set options
|
122 |
$style_options = array();
|
123 |
$style_options['scheme_color_multiset'] = 'light';
|
124 |
-
$style_options['stars_set_free'] = '
|
125 |
|
126 |
add_option("yasr_style_options", $style_options);
|
127 |
|
@@ -129,7 +129,7 @@ function yasr_install() {
|
|
129 |
$multi_set_options = array();
|
130 |
$multi_set_options['show_average'] = 'yes';
|
131 |
|
132 |
-
|
133 |
|
134 |
|
135 |
}
|
121 |
//Style set options
|
122 |
$style_options = array();
|
123 |
$style_options['scheme_color_multiset'] = 'light';
|
124 |
+
$style_options['stars_set_free'] = 'flat';
|
125 |
|
126 |
add_option("yasr_style_options", $style_options);
|
127 |
|
129 |
$multi_set_options = array();
|
130 |
$multi_set_options['show_average'] = 'yes';
|
131 |
|
132 |
+
add_option("yasr_multiset_options", $multi_set_options);
|
133 |
|
134 |
|
135 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
|
|
4 |
Requires at least: 4.3.0
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.2.
|
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
|
@@ -113,6 +113,11 @@ Of course not: you can easily add it on the visual editor just by clicking the "
|
|
113 |
|
114 |
The full changelog can be found in the plugin's directory. Recent entries:
|
115 |
|
|
|
|
|
|
|
|
|
|
|
116 |
= 1.2.7 =
|
117 |
* NEW FEATURE: a new flat stars set has been added! (Just go in the Yasr settings, --> Aspect & Styles, and choose the one you want!)
|
118 |
* TWEAKED: added filter and action on yasr style settings page
|
@@ -148,13 +153,3 @@ The full changelog can be found in the plugin's directory. Recent entries:
|
|
148 |
* TWEAKED: google support now json-ld for reviews: so microdata have been removed from yasr, that now use only json-ld. Further this, all blogposting error have been fixed
|
149 |
* FIXED: Multi Set cache didn't get when it was edited
|
150 |
* TWEAK: code cleanup and bugfix
|
151 |
-
|
152 |
-
= 1.2.1 =
|
153 |
-
* FIXED: wrong css class on ajax response if yasr_visitor_votes is used with a different size then default
|
154 |
-
|
155 |
-
= 1.2.0 =
|
156 |
-
* FIXED: if more then one visitor multiset for page were used only the last use to work
|
157 |
-
* TWEAKED: transient are used to cache ratings: this means that Yasr is faster then ever
|
158 |
-
* TWEAKED: shortcode creator is now above of tinymce. It now uses thickbox
|
159 |
-
* TWEAKED: added filter 'yasr_filter_ip' to filter stored ip address
|
160 |
-
* TWEAKED: code cleanup
|
4 |
Requires at least: 4.3.0
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.2.8
|
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
|
113 |
|
114 |
The full changelog can be found in the plugin's directory. Recent entries:
|
115 |
|
116 |
+
= 1.2.8 =
|
117 |
+
* FIXED: Fatal error on first install
|
118 |
+
* TWEAKED: Flat stars set is the new default theme
|
119 |
+
* Minor changes
|
120 |
+
|
121 |
= 1.2.7 =
|
122 |
* NEW FEATURE: a new flat stars set has been added! (Just go in the Yasr settings, --> Aspect & Styles, and choose the one you want!)
|
123 |
* TWEAKED: added filter and action on yasr style settings page
|
153 |
* TWEAKED: google support now json-ld for reviews: so microdata have been removed from yasr, that now use only json-ld. Further this, all blogposting error have been fixed
|
154 |
* FIXED: Multi Set cache didn't get when it was edited
|
155 |
* TWEAK: code cleanup and bugfix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.2.
|
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.2.
|
36 |
|
37 |
//Plugin relative path
|
38 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|
@@ -129,7 +129,7 @@ define ("YASR_METABOX_OVERALL_RATING", $yasr_stored_options['metabox_overall_rat
|
|
129 |
|
130 |
|
131 |
// this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
|
132 |
-
define( 'YASR_EDD_SL_STORE_URL', '
|
133 |
|
134 |
|
135 |
//Get stored style options
|
@@ -268,77 +268,64 @@ add_action('plugins_loaded', 'yasr_update_version' );
|
|
268 |
|
269 |
function yasr_update_version() {
|
270 |
|
271 |
-
|
272 |
|
273 |
-
|
274 |
-
|
275 |
-
global $yasr_stored_options;
|
276 |
-
|
277 |
-
//Remove end Sept 2016
|
278 |
-
if ($yasr_version_installed && $yasr_version_installed < '1.2.2') {
|
279 |
-
|
280 |
-
$yasr_stored_options['blogposting_organization_name'] = get_bloginfo('name');
|
281 |
-
$yasr_stored_options['blogposting_organization_logo'] = get_site_icon_url();
|
282 |
|
283 |
-
|
284 |
-
|
285 |
-
}
|
286 |
|
|
|
287 |
|
288 |
-
|
289 |
-
if ($yasr_version_installed && $yasr_version_installed < '1.0.5') {
|
290 |
|
291 |
-
|
|
|
292 |
|
293 |
-
|
|
|
294 |
|
295 |
-
|
296 |
|
297 |
}
|
298 |
|
299 |
-
else {
|
300 |
-
|
301 |
-
$style_options['scheme_color_multiset'] = 'light';
|
302 |
-
|
303 |
-
}
|
304 |
|
305 |
-
|
|
|
306 |
|
307 |
-
|
308 |
|
309 |
-
|
310 |
-
if ($yasr_version_installed && $yasr_version_installed < '1.0.2') {
|
311 |
|
312 |
-
|
313 |
-
CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;");
|
314 |
|
315 |
-
|
316 |
|
317 |
-
|
318 |
-
if ($yasr_version_installed && $yasr_version_installed < '0.9.9') {
|
319 |
|
320 |
-
|
321 |
|
322 |
-
|
323 |
|
324 |
-
|
325 |
|
|
|
326 |
|
327 |
-
|
328 |
-
|
329 |
|
330 |
-
|
|
|
331 |
|
332 |
-
|
333 |
|
334 |
-
|
335 |
|
336 |
-
/****** End backward compatibility functions ******/
|
337 |
|
|
|
338 |
|
339 |
-
|
340 |
|
341 |
-
|
342 |
|
343 |
}
|
344 |
|
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.2.8
|
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.2.8');
|
36 |
|
37 |
//Plugin relative path
|
38 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|
129 |
|
130 |
|
131 |
// this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
|
132 |
+
define( 'YASR_EDD_SL_STORE_URL', 'http://yetanotherstarsrating.com' );
|
133 |
|
134 |
|
135 |
//Get stored style options
|
268 |
|
269 |
function yasr_update_version() {
|
270 |
|
271 |
+
//do only in admin
|
272 |
|
273 |
+
if (is_admin()) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
|
275 |
+
global $wpdb;
|
|
|
|
|
276 |
|
277 |
+
global $yasr_version_installed;
|
278 |
|
279 |
+
global $yasr_stored_options;
|
|
|
280 |
|
281 |
+
//Remove end Sept 2016
|
282 |
+
if ($yasr_version_installed && $yasr_version_installed < '1.2.2') {
|
283 |
|
284 |
+
$yasr_stored_options['blogposting_organization_name'] = get_bloginfo('name');
|
285 |
+
$yasr_stored_options['blogposting_organization_logo'] = get_site_icon_url();
|
286 |
|
287 |
+
update_option("yasr_general_options", $yasr_stored_options);
|
288 |
|
289 |
}
|
290 |
|
|
|
|
|
|
|
|
|
|
|
291 |
|
292 |
+
//Remove july 2016
|
293 |
+
if ($yasr_version_installed && $yasr_version_installed < '1.0.5') {
|
294 |
|
295 |
+
$multiset_options = get_option('yasr_multiset_options');
|
296 |
|
297 |
+
if($multiset_options && $multiset_options['scheme_color'] != '') {
|
|
|
298 |
|
299 |
+
$style_options['scheme_color_multiset'] = $multiset_options['scheme_color'];
|
|
|
300 |
|
301 |
+
}
|
302 |
|
303 |
+
else {
|
|
|
304 |
|
305 |
+
$style_options['scheme_color_multiset'] = 'light';
|
306 |
|
307 |
+
}
|
308 |
|
309 |
+
update_option("yasr_style_options", $style_options);
|
310 |
|
311 |
+
}
|
312 |
|
313 |
+
//remove end may 2016
|
314 |
+
if ($yasr_version_installed && $yasr_version_installed < '1.0.2') {
|
315 |
|
316 |
+
$wpdb->query("ALTER TABLE " . YASR_MULTI_SET_FIELDS_TABLE . " CHANGE field_name field_name VARCHAR( 40 )
|
317 |
+
CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;");
|
318 |
|
319 |
+
}
|
320 |
|
321 |
+
/****** End backward compatibility functions ******/
|
322 |
|
|
|
323 |
|
324 |
+
if ($yasr_version_installed != YASR_VERSION_NUM) {
|
325 |
|
326 |
+
update_option('yasr-version', YASR_VERSION_NUM);
|
327 |
|
328 |
+
}
|
329 |
|
330 |
}
|
331 |
|