Version Description
- Bugfix related with the previous release
Download this release
Release Info
Developer | richplugins |
Plugin | Google Reviews Widget |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- grw.php +2 -2
- includes/core/class-core.php +8 -9
- readme.txt +4 -1
grw.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Plugin 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 |
-
Version: 2.2.
|
7 |
Author: RichPlugins <support@richplugins.com>
|
8 |
Author URI: https://richplugins.com
|
9 |
Text Domain: widget-google-reviews
|
@@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
|
|
18 |
|
19 |
require(ABSPATH . 'wp-includes/version.php');
|
20 |
|
21 |
-
define('GRW_VERSION' , '2.2.
|
22 |
define('GRW_PLUGIN_FILE' , __FILE__);
|
23 |
define('GRW_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
24 |
define('GRW_ASSETS_URL' , GRW_PLUGIN_URL . '/assets/');
|
3 |
Plugin Name: Plugin 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 |
+
Version: 2.2.4
|
7 |
Author: RichPlugins <support@richplugins.com>
|
8 |
Author URI: https://richplugins.com
|
9 |
Text Domain: widget-google-reviews
|
18 |
|
19 |
require(ABSPATH . 'wp-includes/version.php');
|
20 |
|
21 |
+
define('GRW_VERSION' , '2.2.4');
|
22 |
define('GRW_PLUGIN_FILE' , __FILE__);
|
23 |
define('GRW_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
24 |
define('GRW_ASSETS_URL' , GRW_PLUGIN_URL . '/assets/');
|
includes/core/class-core.php
CHANGED
@@ -279,15 +279,14 @@ class Core {
|
|
279 |
global $wpdb;
|
280 |
|
281 |
// -------------- Get Google place --------------
|
282 |
-
$
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
);
|
291 |
|
292 |
$rating = 0;
|
293 |
$review_count = 0;
|
279 |
global $wpdb;
|
280 |
|
281 |
// -------------- Get Google place --------------
|
282 |
+
$place_sql = "SELECT id, place_id, name, rating, review_count, updated" .
|
283 |
+
" FROM " . $wpdb->prefix . Database::BUSINESS_TABLE .
|
284 |
+
" WHERE rating > 0 AND review_count > 0" . ($place_id > 0 ? ' AND id = %d' : '') .
|
285 |
+
" ORDER BY id DESC";
|
286 |
+
|
287 |
+
$places = $place_id > 0 ?
|
288 |
+
$wpdb->get_results($wpdb->prepare($place_sql, sanitize_text_field(wp_unslash($place_id)))) :
|
289 |
+
$wpdb->get_results($wpdb->prepare($place_sql));
|
|
|
290 |
|
291 |
$rating = 0;
|
292 |
$review_count = 0;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
|
4 |
Tags: google reviews, google, reviews, rating, widget, reviews plugin, google business, testimonial, testimonials, google places reviews, map reviews, google my business
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 6.1
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -98,6 +98,9 @@ To find out more about who we are and what we do, here are some useful links:
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
101 |
= 2.2.3 =
|
102 |
* Security: check admin role in widget create function
|
103 |
* Improve: initial Google reviews connection
|
4 |
Tags: google reviews, google, reviews, rating, widget, reviews plugin, google business, testimonial, testimonials, google places reviews, map reviews, google my business
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 6.1
|
7 |
+
Stable tag: 2.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 2.2.4 =
|
102 |
+
* Bugfix related with the previous release
|
103 |
+
|
104 |
= 2.2.3 =
|
105 |
* Security: check admin role in widget create function
|
106 |
* Improve: initial Google reviews connection
|