Version Description
- TWAKED: an absolute url is passed on get_image_size instead of an URL. This id due to compatibility in some cheap hosting
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- lib/yasr-ajax-functions.php +2 -2
- lib/yasr-functions.php +8 -4
- readme.txt +4 -1
- yet-another-stars-rating.php +2 -2
lib/yasr-ajax-functions.php
CHANGED
@@ -32,8 +32,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
32 |
function yasr_insert_overall_rating_callback() {
|
33 |
|
34 |
if (isset($_POST['rating']) && ($_POST['post_id']) && $_POST['post_id'] != '') {
|
35 |
-
|
36 |
-
|
37 |
$nonce = $_POST['nonce'];
|
38 |
}
|
39 |
|
32 |
function yasr_insert_overall_rating_callback() {
|
33 |
|
34 |
if (isset($_POST['rating']) && ($_POST['post_id']) && $_POST['post_id'] != '') {
|
35 |
+
$rating = $_POST['rating'];
|
36 |
+
$post_id = $_POST['post_id'];
|
37 |
$nonce = $_POST['nonce'];
|
38 |
}
|
39 |
|
lib/yasr-functions.php
CHANGED
@@ -402,7 +402,7 @@ add_filter('the_content', 'yasr_add_schema');
|
|
402 |
if (function_exists('bp_is_active')) {
|
403 |
|
404 |
//Return content only if is page. This will disable schema for all page.
|
405 |
-
//
|
406 |
//or (YASR_SNIPPET == 'visitor_rating') $content will have only wp content, losing the buddypress one
|
407 |
if (is_page()) {
|
408 |
|
@@ -445,9 +445,11 @@ add_filter('the_content', 'yasr_add_schema');
|
|
445 |
|
446 |
$logo_image_url = YASR_BLOGPOSTING_ORGANIZATION_LOGO;
|
447 |
|
448 |
-
$
|
449 |
|
450 |
-
$
|
|
|
|
|
451 |
|
452 |
}
|
453 |
|
@@ -466,7 +468,9 @@ add_filter('the_content', 'yasr_add_schema');
|
|
466 |
|
467 |
$post_image_url = wp_get_attachment_url(get_post_thumbnail_id());
|
468 |
|
469 |
-
$
|
|
|
|
|
470 |
|
471 |
}
|
472 |
|
402 |
if (function_exists('bp_is_active')) {
|
403 |
|
404 |
//Return content only if is page. This will disable schema for all page.
|
405 |
+
//If I try to return $content after if (YASR_SNIPPET == 'overall_rating')
|
406 |
//or (YASR_SNIPPET == 'visitor_rating') $content will have only wp content, losing the buddypress one
|
407 |
if (is_page()) {
|
408 |
|
445 |
|
446 |
$logo_image_url = YASR_BLOGPOSTING_ORGANIZATION_LOGO;
|
447 |
|
448 |
+
$logo_image_url_absolute = $_SERVER['DOCUMENT_ROOT'] . parse_url(YASR_BLOGPOSTING_ORGANIZATION_LOGO, PHP_URL_PATH);
|
449 |
|
450 |
+
$post_image_size = @getimagesize($logo_image_url_absolute); //the @ should be useless, just to be safe
|
451 |
+
|
452 |
+
$logo_image_size = @getimagesize($logo_image_url_absolute); //the @ should be useless, just to be safe
|
453 |
|
454 |
}
|
455 |
|
468 |
|
469 |
$post_image_url = wp_get_attachment_url(get_post_thumbnail_id());
|
470 |
|
471 |
+
$post_image_url_absolute = $_SERVER['DOCUMENT_ROOT'] . parse_url($post_image_url, PHP_URL_PATH);
|
472 |
+
|
473 |
+
$post_image_size = @getimagesize($post_image_url_absolute); //the @ should be useless, just to be safe
|
474 |
|
475 |
}
|
476 |
|
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.2
|
7 |
-
Stable tag: 1.3.
|
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,9 @@ 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.3.0 =
|
117 |
* NEW FEATURE: Widget support for yasr_overall_rating and yasr_visitor_votes shortcodes
|
118 |
* TWEAKED: Yasr shortcode creatore will appear only in backend
|
4 |
Requires at least: 4.3.0
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 4.5.2
|
7 |
+
Stable tag: 1.3.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
|
113 |
|
114 |
The full changelog can be found in the plugin's directory. Recent entries:
|
115 |
|
116 |
+
= 1.3.1 =
|
117 |
+
* TWAKED: an absolute url is passed on get_image_size instead of an URL. This id due to compatibility in some cheap hosting
|
118 |
+
|
119 |
= 1.3.0 =
|
120 |
* NEW FEATURE: Widget support for yasr_overall_rating and yasr_visitor_votes shortcodes
|
121 |
* TWEAKED: Yasr shortcode creatore will appear only in backend
|
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.3.
|
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.3.
|
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.3.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.3.1');
|
35 |
|
36 |
//Plugin relative path
|
37 |
define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
|