Version Description
- Bugfix: auto-updating existing place rating
Download this release
Release Info
Developer | widgetpack |
Plugin | Google Reviews Widget |
Version | 1.45 |
Comparing to | |
See all releases |
Code changes from version 1.44 to 1.45
- grw-widget.php +1 -1
- grw.php +5 -3
- readme.txt +6 -3
grw-widget.php
CHANGED
@@ -285,7 +285,7 @@ class Goog_Reviews_Widget extends WP_Widget {
|
|
285 |
<div class="grp-options" style="display:none">
|
286 |
<div class="form-group wpgrev-disabled">
|
287 |
<input type="text" placeholder="<?php echo grw_i('Leave Google review link'); ?>" disabled />
|
288 |
-
<small><?php echo grw_i('
|
289 |
</div>
|
290 |
<div class="form-group wpgrev-disabled">
|
291 |
<input type="checkbox" disabled />
|
285 |
<div class="grp-options" style="display:none">
|
286 |
<div class="form-group wpgrev-disabled">
|
287 |
<input type="text" placeholder="<?php echo grw_i('Leave Google review link'); ?>" disabled />
|
288 |
+
<small><?php echo grw_i('Allows to post Google reviews straight in widget on your website'); ?></small>
|
289 |
</div>
|
290 |
<div class="form-group wpgrev-disabled">
|
291 |
<input type="checkbox" disabled />
|
grw.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Reviews Widget
|
|
4 |
Plugin URI: https://googlereviews.pro/
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
Author: WidgetPack <contact@widgetpack.com>
|
7 |
-
Version: 1.
|
8 |
Author URI: https://googlereviews.pro/
|
9 |
*/
|
10 |
|
@@ -12,7 +12,7 @@ require(ABSPATH . 'wp-includes/version.php');
|
|
12 |
|
13 |
require_once(dirname(__FILE__) . '/api/grw-api.php');
|
14 |
|
15 |
-
define('GRW_VERSION', '1.
|
16 |
define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
|
17 |
define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg');
|
18 |
define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
@@ -291,7 +291,9 @@ function grw_save_reviews($place, $min_filter = 0) {
|
|
291 |
global $wpdb;
|
292 |
|
293 |
$google_place_id = $wpdb->get_var($wpdb->prepare("SELECT id FROM " . $wpdb->prefix . "grp_google_place WHERE place_id = %s", $place['place_id']));
|
294 |
-
if (
|
|
|
|
|
295 |
$wpdb->insert($wpdb->prefix . 'grp_google_place', array(
|
296 |
'place_id' => $place['place_id'],
|
297 |
'name' => $place['name'],
|
4 |
Plugin URI: https://googlereviews.pro/
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
Author: WidgetPack <contact@widgetpack.com>
|
7 |
+
Version: 1.45
|
8 |
Author URI: https://googlereviews.pro/
|
9 |
*/
|
10 |
|
12 |
|
13 |
require_once(dirname(__FILE__) . '/api/grw-api.php');
|
14 |
|
15 |
+
define('GRW_VERSION', '1.45');
|
16 |
define('GRW_GOOGLE_PLACE_API', 'https://maps.googleapis.com/maps/api/place/');
|
17 |
define('GRW_GOOGLE_AVATAR', 'https://lh3.googleusercontent.com/-8hepWJzFXpE/AAAAAAAAAAI/AAAAAAAAAAA/I80WzYfIxCQ/s64-c/114307615494839964028.jpg');
|
18 |
define('GRW_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
291 |
global $wpdb;
|
292 |
|
293 |
$google_place_id = $wpdb->get_var($wpdb->prepare("SELECT id FROM " . $wpdb->prefix . "grp_google_place WHERE place_id = %s", $place['place_id']));
|
294 |
+
if ($google_place_id) {
|
295 |
+
$wpdb->update($wpdb->prefix . 'grp_google_place', array('rating' => $place['rating']), array('ID' => $google_place_id));
|
296 |
+
} else {
|
297 |
$wpdb->insert($wpdb->prefix . 'grp_google_place', array(
|
298 |
'place_id' => $place['place_id'],
|
299 |
'name' => $place['name'],
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Google Reviews Widget ===
|
2 |
Contributors: widgetpack
|
3 |
Donate link: https://googlereviews.pro/
|
4 |
-
Tags: google, google business reviews, google place review, Google Places, google places reviews, google review, google review widget, google map reviews, map reviews,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,7 @@ Google Reviews Widget show Google Business Reviews on your WordPress website to
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
This plugin display Google Places Reviews on your websites in sidebar widget. A unique feature of the plugin is that it save all reviews in WordPress database and have no depend on any services like Google to show these reviews.
|
16 |
|
17 |
Live demo: [http://widgetsforsite.com/](http://widgetsforsite.com/)
|
18 |
|
@@ -62,6 +62,9 @@ Live demo: [http://widgetsforsite.com/](http://widgetsforsite.com/)
|
|
62 |
|
63 |
== Changelog ==
|
64 |
|
|
|
|
|
|
|
65 |
= 1.44 =
|
66 |
* Update readme
|
67 |
|
1 |
=== Google Reviews Widget ===
|
2 |
Contributors: widgetpack
|
3 |
Donate link: https://googlereviews.pro/
|
4 |
+
Tags: google, google reviews, google business reviews, google place review, Google Places, google places reviews, google review, google review widget, google map reviews, map reviews, review, reviews, google reviews widget, google plus reviews, g+ reviews, comment, comments, sidebar, widget, widgetpack
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 1.45
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
This plugin display Google Places Reviews on your websites in sidebar widget. A unique feature of the plugin is that it save all reviews in WordPress database and have no depend on any services like Google to show these reviews. To get more unique features we have [Pro and Business version](https://googlereviews.pro/) of plugin.
|
16 |
|
17 |
Live demo: [http://widgetsforsite.com/](http://widgetsforsite.com/)
|
18 |
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= 1.45 =
|
66 |
+
* Bugfix: auto-updating existing place rating
|
67 |
+
|
68 |
= 1.44 =
|
69 |
* Update readme
|
70 |
|