Version Description
- Little bugfix
- Removed external debug information
Download this release
Release Info
Developer | widgetpack |
Plugin | Google Reviews Widget |
Version | 1.9.6 |
Comparing to | |
See all releases |
Code changes from version 1.9.5 to 1.9.6
- grw.php +2 -16
- readme.txt +5 -1
grw.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Widget for Google Reviews
|
|
4 |
Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
Author: RichPlugins <support@richplugins.com>
|
7 |
-
Version: 1.9.
|
8 |
Author URI: https://richplugins.com
|
9 |
Text Domain: widget-google-reviews
|
10 |
Domain Path: /languages
|
@@ -15,7 +15,7 @@ require(ABSPATH . 'wp-includes/version.php');
|
|
15 |
include_once(dirname(__FILE__) . '/api/urlopen.php');
|
16 |
include_once(dirname(__FILE__) . '/helper/debug.php');
|
17 |
|
18 |
-
define('GRW_VERSION', '1.9.
|
19 |
define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
|
20 |
define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s128-c/114307615494839964028.jpg');
|
21 |
define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
@@ -489,10 +489,6 @@ function grw_save_reviews($place, $min_filter = 0) {
|
|
489 |
|
490 |
/*-------------------------------- Refresh Reviews --------------------------------*/
|
491 |
function grw_refresh_reviews($args) {
|
492 |
-
|
493 |
-
//DEBUG
|
494 |
-
$grw_debug_refresh = get_option('grw_debug_refresh');
|
495 |
-
|
496 |
$google_api_key = get_option('grw_google_api_key');
|
497 |
if (!$google_api_key || strlen($google_api_key) < 1) {
|
498 |
return;
|
@@ -503,9 +499,6 @@ function grw_refresh_reviews($args) {
|
|
503 |
|
504 |
$url = grw_api_url($place_id, $reviews_lang);
|
505 |
|
506 |
-
//DEBUG
|
507 |
-
$grw_debug_refresh = $grw_debug_refresh . $url;
|
508 |
-
|
509 |
$response = rplg_urlopen($url);
|
510 |
|
511 |
$response_data = $response['data'];
|
@@ -514,14 +507,7 @@ function grw_refresh_reviews($args) {
|
|
514 |
if ($response_json && isset($response_json->result)) {
|
515 |
$response_json->result->business_photo = grw_business_avatar($response_json->result);
|
516 |
grw_save_reviews($response_json->result);
|
517 |
-
|
518 |
-
//DEBUG
|
519 |
-
$grw_debug_refresh = $grw_debug_refresh . ', save_reviews; ';
|
520 |
}
|
521 |
-
|
522 |
-
//DEBUG
|
523 |
-
update_option('grw_debug_refresh', $grw_debug_refresh);
|
524 |
-
|
525 |
delete_transient('grw_refresh_reviews_' . join('_', $args));
|
526 |
}
|
527 |
add_action('grw_refresh_reviews', 'grw_refresh_reviews');
|
4 |
Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
Author: RichPlugins <support@richplugins.com>
|
7 |
+
Version: 1.9.6
|
8 |
Author URI: https://richplugins.com
|
9 |
Text Domain: widget-google-reviews
|
10 |
Domain Path: /languages
|
15 |
include_once(dirname(__FILE__) . '/api/urlopen.php');
|
16 |
include_once(dirname(__FILE__) . '/helper/debug.php');
|
17 |
|
18 |
+
define('GRW_VERSION', '1.9.6');
|
19 |
define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
|
20 |
define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s128-c/114307615494839964028.jpg');
|
21 |
define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
489 |
|
490 |
/*-------------------------------- Refresh Reviews --------------------------------*/
|
491 |
function grw_refresh_reviews($args) {
|
|
|
|
|
|
|
|
|
492 |
$google_api_key = get_option('grw_google_api_key');
|
493 |
if (!$google_api_key || strlen($google_api_key) < 1) {
|
494 |
return;
|
499 |
|
500 |
$url = grw_api_url($place_id, $reviews_lang);
|
501 |
|
|
|
|
|
|
|
502 |
$response = rplg_urlopen($url);
|
503 |
|
504 |
$response_data = $response['data'];
|
507 |
if ($response_json && isset($response_json->result)) {
|
508 |
$response_json->result->business_photo = grw_business_avatar($response_json->result);
|
509 |
grw_save_reviews($response_json->result);
|
|
|
|
|
|
|
510 |
}
|
|
|
|
|
|
|
|
|
511 |
delete_transient('grw_refresh_reviews_' . join('_', $args));
|
512 |
}
|
513 |
add_action('grw_refresh_reviews', 'grw_refresh_reviews');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
|
4 |
Tags: Google, reviews, widget, testimonials, Google Places reviews
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -79,6 +79,10 @@ Why limit your reviews to just Google Reviews? Check out our other free reviews
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
82 |
= 1.9.5 =
|
83 |
* Remove http in svg type
|
84 |
|
4 |
Tags: Google, reviews, widget, testimonials, Google Places reviews
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 1.9.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 1.9.6 =
|
83 |
+
* Little bugfix
|
84 |
+
* Removed external debug information
|
85 |
+
|
86 |
= 1.9.5 =
|
87 |
* Remove http in svg type
|
88 |
|