Yasr – Yet Another Stars Rating - Version 1.4.9

Version Description

  • Added support to litespeed caching plugin (kudos to pako69)
Download this release

Release Info

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

Code changes from version 1.4.8 to 1.4.9

lib/yasr-admin-actions.php CHANGED
@@ -14,6 +14,8 @@ add_action('yasr_action_on_update_visitor_vote', 'yasr_delete_cache');
14
15
yasr_wp_rocket_support($post_id);
16
17
}
18
19
14
15
yasr_wp_rocket_support($post_id);
16
17
+ yasr_litespeed_cache_support($post_id);
18
+
19
}
20
21
lib/yasr-functions.php CHANGED
@@ -295,7 +295,7 @@ function yasr_css_stars_set() {
295
296
if (!is_admin()) {
297
298
- add_filter('the_content', 'yasr_auto_insert_shortcode_callback');
299
300
}
301
@@ -781,6 +781,7 @@ function yasr_stars_size ($size) {
781
782
783
/*** Add support for wp super cache ***/
784
function yasr_wp_super_cache_support($post_id) {
785
786
if(function_exists('wp_cache_post_change')) {
@@ -801,6 +802,18 @@ function yasr_wp_rocket_support($post_id) {
801
802
}
803
804
805
/*** Function to set cookie, since version 0.8.3 ***/
806
function yasr_setcookie($cookiename, $value) {
295
296
if (!is_admin()) {
297
298
+ add_filter('the_content', 'yasr_auto_insert_shortcode_callback', 9);
299
300
}
301
781
782
783
/*** Add support for wp super cache ***/
784
+
785
function yasr_wp_super_cache_support($post_id) {
786
787
if(function_exists('wp_cache_post_change')) {
802
803
}
804
805
+ /*** Add support for LiteSpeed Cache plugin, thanks to Pako69
806
+ https://wordpress.org/support/topic/yasr-is-litespeed-cache-plugin-compatible/
807
+ ***/
808
+
809
+ function yasr_litespeed_cache_support($post_id) {
810
+
811
+ if (method_exists( 'LiteSpeed_Cache_API', 'purge_post' ) == TRUE) {
812
+ LiteSpeed_Cache_API::purge_post( $post_id ) ;
813
+ }
814
+
815
+ }
816
+
817
818
/*** Function to set cookie, since version 0.8.3 ***/
819
function yasr_setcookie($cookiename, $value) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
4
Requires at least: 4.3.0
5
Contributors: Dudo
6
- Tested up to: 4.8.2
7
- Stable tag: 1.4.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
@@ -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.4.8 =
111
* Minor changes (Thx to pako69)
112
3
Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
4
Requires at least: 4.3.0
5
Contributors: Dudo
6
+ Tested up to: 4.9.4
7
+ Stable tag: 1.4.9
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.4.9 =
111
+ * Added support to litespeed caching plugin (kudos to pako69)
112
+
113
= 1.4.8 =
114
* Minor changes (Thx to pako69)
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.4.8
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.4.8');
35
36
//Plugin relative path
37
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
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.4.9
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.4.9');
35
36
//Plugin relative path
37
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );