Version Description
- FIXED: when a post/page was removed from trash
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- lib/yasr-db-functions.php +2 -10
- readme.txt +4 -1
- yet-another-stars-rating.php +4 -16
lib/yasr-db-functions.php
CHANGED
@@ -691,16 +691,8 @@ add_action ('admin_init', 'admin_init_delete_data_on_post_callback');
|
|
691 |
|
692 |
global $wpdb;
|
693 |
|
694 |
-
|
695 |
-
$
|
696 |
-
YASR_VOTES_TABLE,
|
697 |
-
array (
|
698 |
-
'post_id' => $pid
|
699 |
-
),
|
700 |
-
array (
|
701 |
-
'%d'
|
702 |
-
)
|
703 |
-
);
|
704 |
|
705 |
//Delete multi value
|
706 |
$wpdb->delete(
|
691 |
|
692 |
global $wpdb;
|
693 |
|
694 |
+
delete_post_meta($pid, 'yasr_overall_rating');
|
695 |
+
delete_post_meta($pid, 'yasr_review_type');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
696 |
|
697 |
//Delete multi value
|
698 |
$wpdb->delete(
|
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.9.4
|
7 |
-
Stable tag: 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
|
@@ -107,6 +107,9 @@ Of course not: you can easily add it on the visual editor just by clicking the "
|
|
107 |
|
108 |
The full changelog can be found in the plugin's directory. Recent entries:
|
109 |
|
|
|
|
|
|
|
110 |
= 1.5.0 =
|
111 |
* Updated rateit to version 1.1.0
|
112 |
|
4 |
Requires at least: 4.3.0
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 1.5.1
|
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
|
107 |
|
108 |
The full changelog can be found in the plugin's directory. Recent entries:
|
109 |
|
110 |
+
= 1.5.1 =
|
111 |
+
* FIXED: when a post/page was removed from trash
|
112 |
+
|
113 |
= 1.5.0 =
|
114 |
* Updated rateit to version 1.1.0
|
115 |
|
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.5.
|
7 |
* Author: Dario Curvino
|
8 |
* Author URI: https://yetanotherstarsrating.com/
|
9 |
* Text Domain: yet-another-stars-rating
|
@@ -31,7 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
31 |
|
32 |
if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
|
33 |
|
34 |
-
define('YASR_VERSION_NUM', '1.5.
|
35 |
|
36 |
//Plugin relative path
|
37 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|
@@ -228,7 +228,7 @@ require (YASR_ABSOLUTE_PATH . '/lib/yasr-widgets.php');
|
|
228 |
|
229 |
global $wpdb;
|
230 |
|
231 |
-
define ("YASR_VOTES_TABLE", $wpdb->prefix . 'yasr_votes');
|
232 |
|
233 |
define ("YASR_MULTI_SET_NAME_TABLE", $wpdb->prefix . 'yasr_multi_set');
|
234 |
|
@@ -281,7 +281,7 @@ function yasr_update_version() {
|
|
281 |
global $yasr_stored_options;
|
282 |
|
283 |
|
284 |
-
//Remove end
|
285 |
//This is a very important update: yasr_votes table will not be used anymore, using post meta instead
|
286 |
//
|
287 |
|
@@ -313,18 +313,6 @@ function yasr_update_version() {
|
|
313 |
|
314 |
}
|
315 |
|
316 |
-
|
317 |
-
//Remove end Sept 2016
|
318 |
-
if ($yasr_version_installed && $yasr_version_installed < '1.2.2') {
|
319 |
-
|
320 |
-
$yasr_stored_options['blogposting_organization_name'] = get_bloginfo('name');
|
321 |
-
$yasr_stored_options['blogposting_organization_logo'] = get_site_icon_url();
|
322 |
-
|
323 |
-
update_option("yasr_general_options", $yasr_stored_options);
|
324 |
-
|
325 |
-
}
|
326 |
-
|
327 |
-
|
328 |
/****** End backward compatibility functions ******/
|
329 |
|
330 |
|
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.5.1
|
7 |
* Author: Dario Curvino
|
8 |
* Author URI: https://yetanotherstarsrating.com/
|
9 |
* Text Domain: yet-another-stars-rating
|
31 |
|
32 |
if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
|
33 |
|
34 |
+
define('YASR_VERSION_NUM', '1.5.1');
|
35 |
|
36 |
//Plugin relative path
|
37 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|
228 |
|
229 |
global $wpdb;
|
230 |
|
231 |
+
define ("YASR_VOTES_TABLE", $wpdb->prefix . 'yasr_votes'); //Used in background
|
232 |
|
233 |
define ("YASR_MULTI_SET_NAME_TABLE", $wpdb->prefix . 'yasr_multi_set');
|
234 |
|
281 |
global $yasr_stored_options;
|
282 |
|
283 |
|
284 |
+
//Remove end DECEMBER 2018
|
285 |
//This is a very important update: yasr_votes table will not be used anymore, using post meta instead
|
286 |
//
|
287 |
|
313 |
|
314 |
}
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
/****** End backward compatibility functions ******/
|
317 |
|
318 |
|