Version Description
- FIX: rich snippet's attribute name returns the post_id instead of the title in some circumstances
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 2.5.5 |
Comparing to | |
See all releases |
Code changes from version 2.5.4 to 2.5.5
- public/classes/YasrPublicFilters.php +8 -5
- readme.txt +5 -2
- yet-another-stars-rating.php +1 -1
public/classes/YasrPublicFilters.php
CHANGED
@@ -25,9 +25,9 @@ class YasrPublicFilters {
|
|
25 |
//stars next to the title
|
26 |
if (YASR_STARS_TITLE === 'yes') {
|
27 |
add_filter('the_title', array($this, 'filterTitle'));
|
28 |
-
|
29 |
-
add_filter('yasr_filter_schema_title', array($this, 'removeWidgetFromTitle'));
|
30 |
}
|
|
|
|
|
31 |
}
|
32 |
|
33 |
/**
|
@@ -472,8 +472,8 @@ class YasrPublicFilters {
|
|
472 |
|
473 |
|
474 |
/**
|
475 |
-
* Hooks to yasr_filter_schema_title
|
476 |
-
* and remove the widget from the title, otherwise it will appear in snippets
|
477 |
*
|
478 |
* @author Dario Curvino <@dudo>
|
479 |
* @since 2.5.2
|
@@ -483,7 +483,10 @@ class YasrPublicFilters {
|
|
483 |
* @return string
|
484 |
*/
|
485 |
public function removeWidgetFromTitle($post_id) {
|
486 |
-
|
|
|
|
|
|
|
487 |
|
488 |
return get_the_title($post_id);
|
489 |
}
|
25 |
//stars next to the title
|
26 |
if (YASR_STARS_TITLE === 'yes') {
|
27 |
add_filter('the_title', array($this, 'filterTitle'));
|
|
|
|
|
28 |
}
|
29 |
+
|
30 |
+
add_filter('yasr_filter_schema_title', array($this, 'removeWidgetFromTitle'));
|
31 |
}
|
32 |
|
33 |
/**
|
472 |
|
473 |
|
474 |
/**
|
475 |
+
* Hooks to yasr_filter_schema_title
|
476 |
+
* and remove the widget from the title if enabled, otherwise it will appear in snippets
|
477 |
*
|
478 |
* @author Dario Curvino <@dudo>
|
479 |
* @since 2.5.2
|
483 |
* @return string
|
484 |
*/
|
485 |
public function removeWidgetFromTitle($post_id) {
|
486 |
+
//This if must be here or no title will return!!
|
487 |
+
if (YASR_STARS_TITLE === 'yes') {
|
488 |
+
remove_filter('the_title', array($this, 'filterTitle'));
|
489 |
+
}
|
490 |
|
491 |
return get_the_title($post_id);
|
492 |
}
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
3 |
Tags: rating, rate post, rate page, star rating, google rating, votes
|
4 |
Requires at least: 4.9.0
|
5 |
Contributors: Dudo
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.5.
|
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
|
@@ -181,6 +181,9 @@ If doesn't, you should work on your seo reputation.
|
|
181 |
|
182 |
The full changelog can be found in the plugin's directory. Recent entries:
|
183 |
|
|
|
|
|
|
|
184 |
= 2.5.4 =
|
185 |
* FIX: yasr_visitor_multiset data didn't save correctly if more than one were used in the same page.
|
186 |
|
3 |
Tags: rating, rate post, rate page, star rating, google rating, votes
|
4 |
Requires at least: 4.9.0
|
5 |
Contributors: Dudo
|
6 |
+
Tested up to: 5.6
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.5.5
|
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
|
181 |
|
182 |
The full changelog can be found in the plugin's directory. Recent entries:
|
183 |
|
184 |
+
= 2.5.5 =
|
185 |
+
* FIX: rich snippet's attribute name returns the post_id instead of the title in some circumstances
|
186 |
+
|
187 |
= 2.5.4 =
|
188 |
* FIX: yasr_visitor_multiset data didn't save correctly if more than one were used in the same page.
|
189 |
|
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.5.
|
8 |
* Author: Dario Curvino
|
9 |
* Author URI: https://dariocurvino.it/
|
10 |
* Text Domain: yet-another-stars-rating
|
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.5.5
|
8 |
* Author: Dario Curvino
|
9 |
* Author URI: https://dariocurvino.it/
|
10 |
* Text Domain: yet-another-stars-rating
|