Widgets for Google Reviews - Version 6.9.2

Version Description

Download this release

Release Info

Developer trustindex
Plugin Icon 128x128 Widgets for Google Reviews
Version 6.9.2
Comparing to
See all releases

Code changes from version 9.6.1 to 6.9.2

readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: google, google places reviews, reviews, widget, google business, review, t
5
  Requires at least: 3.0.1
6
  Tested up to: 6.1
7
  Requires PHP: 5.2
8
- Stable tag: 9.6.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Plugin Name: Widgets for Google Reviews
@@ -14,7 +14,7 @@ Plugin URI: https://wordpress.org/plugins/wp-reviews-plugin-for-google/
14
  Author: Trustindex.io <support@trustindex.io>
15
  Author URI: https://www.trustindex.io/
16
  Text Domain: wp-reviews-plugin-for-google
17
- Version: 9.6.1
18
 
19
  Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google reviews.
20
 
5
  Requires at least: 3.0.1
6
  Tested up to: 6.1
7
  Requires PHP: 5.2
8
+ Stable tag: 9.6.2
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Plugin Name: Widgets for Google Reviews
14
  Author: Trustindex.io <support@trustindex.io>
15
  Author URI: https://www.trustindex.io/
16
  Text Domain: wp-reviews-plugin-for-google
17
+ Version: 9.6.2
18
 
19
  Embed Google reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Google reviews.
20
 
tabs/my_reviews.php CHANGED
@@ -137,7 +137,7 @@ $download_timestamp = get_option($trustindex_pm_google->get_option_name('downloa
137
  <input type="hidden" id="ti-noreg-page-id" value="<?php echo esc_attr($page_details['id']); ?>" />
138
  <input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
139
  <input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
140
- <input type="hidden" id="ti-noreg-version" value="9.6.1" />
141
  <?php if(isset($page_details['access_token'])): ?>
142
  <input type="hidden" id="ti-noreg-access-token" value="<?php echo esc_attr($page_details['access_token']); ?>" />
143
  <?php endif; ?>
137
  <input type="hidden" id="ti-noreg-page-id" value="<?php echo esc_attr($page_details['id']); ?>" />
138
  <input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
139
  <input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
140
+ <input type="hidden" id="ti-noreg-version" value="9.6.2" />
141
  <?php if(isset($page_details['access_token'])): ?>
142
  <input type="hidden" id="ti-noreg-access-token" value="<?php echo esc_attr($page_details['access_token']); ?>" />
143
  <?php endif; ?>
tabs/setup_no_reg.php CHANGED
@@ -122,7 +122,7 @@ update_option($trustindex_pm_google->get_option_name('review-download-token'), $
122
  <input type="hidden" id="ti-noreg-connect-token" name="ti-noreg-connect-token" value="<?php echo $review_download_token; ?>" />
123
  <input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
124
  <input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
125
- <input type="hidden" id="ti-noreg-version" value="9.6.1" />
126
  <input type="hidden" id="ti-noreg-review-download" name="review_download" value="0" />
127
  <input type="hidden" id="ti-noreg-review-request-id" name="review_request_id" value="" />
128
  <input type="hidden" id="ti-noreg-manual-download" name="manual_download" value=0 />
122
  <input type="hidden" id="ti-noreg-connect-token" name="ti-noreg-connect-token" value="<?php echo $review_download_token; ?>" />
123
  <input type="hidden" id="ti-noreg-webhook-url" value="<?php echo $trustindex_pm_google->get_webhook_url(); ?>" />
124
  <input type="hidden" id="ti-noreg-email" value="<?php echo get_option('admin_email'); ?>" />
125
+ <input type="hidden" id="ti-noreg-version" value="9.6.2" />
126
  <input type="hidden" id="ti-noreg-review-download" name="review_download" value="0" />
127
  <input type="hidden" id="ti-noreg-review-request-id" name="review_request_id" value="" />
128
  <input type="hidden" id="ti-noreg-manual-download" name="manual_download" value=0 />
tabs/troubleshooting.php CHANGED
@@ -39,7 +39,7 @@ exit;
39
  }
40
  $yes_icon = '<span class="dashicons dashicons-yes-alt"></span>';
41
  $no_icon = '<span class="dashicons dashicons-dismiss"></span>';
42
- $plugin_updated = ($trustindex_pm_google->get_plugin_current_version() <= "9.6.1");
43
  $css_inline = get_option($trustindex_pm_google->get_option_name('load-css-inline'), 0);
44
  $css = get_option($trustindex_pm_google->get_option_name('css-content'));
45
  ?>
39
  }
40
  $yes_icon = '<span class="dashicons dashicons-yes-alt"></span>';
41
  $no_icon = '<span class="dashicons dashicons-dismiss"></span>';
42
+ $plugin_updated = ($trustindex_pm_google->get_plugin_current_version() <= "9.6.2");
43
  $css_inline = get_option($trustindex_pm_google->get_option_name('load-css-inline'), 0);
44
  $css = get_option($trustindex_pm_google->get_option_name('css-content'));
45
  ?>
trustindex-plugin.class.php CHANGED
@@ -406,7 +406,7 @@ return "<div style='margin:20px 0px; padding:10px; " . $types[$type]['css'] . "
406
  public function get_trustindex_widget($ti_id)
407
  {
408
  wp_enqueue_script('trustindex-js', 'https://cdn.trustindex.io/loader.js', [], false, true);
409
- return "<div src='https://cdn.trustindex.io/loader.js?" . $ti_id . "'></div>";
410
  }
411
  public function get_shortcode_name()
412
  {
@@ -459,7 +459,7 @@ $chosed_platform_slug = $this->plugin_slugs[ $force_platform ];
459
  $current_platform_slug = $this->plugin_slugs[ $this->shortname ];
460
  $file_path = preg_replace('/[^\/\\\\]+([\\\\\/]trustindex-plugin\.class\.php)/', $chosed_platform_slug . '$1', $file_path);
461
  }
462
- $chosed_platform = new self($force_platform, $file_path, "do-not-care-9.6.1", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
463
  if(!$chosed_platform->is_noreg_linked())
464
  {
465
  return $this->error_box_for_admins(self::___('You have to connect your business (%s)!', [$force_platform]));
406
  public function get_trustindex_widget($ti_id)
407
  {
408
  wp_enqueue_script('trustindex-js', 'https://cdn.trustindex.io/loader.js', [], false, true);
409
+ return "<div data-src='https://cdn.trustindex.io/loader.js?" . $ti_id . "'></div>";
410
  }
411
  public function get_shortcode_name()
412
  {
459
  $current_platform_slug = $this->plugin_slugs[ $this->shortname ];
460
  $file_path = preg_replace('/[^\/\\\\]+([\\\\\/]trustindex-plugin\.class\.php)/', $chosed_platform_slug . '$1', $file_path);
461
  }
462
+ $chosed_platform = new self($force_platform, $file_path, "do-not-care-9.6.2", "do-not-care-Widgets for Google Reviews", "do-not-care-Google");
463
  if(!$chosed_platform->is_noreg_linked())
464
  {
465
  return $this->error_box_for_admins(self::___('You have to connect your business (%s)!', [$force_platform]));
uninstall.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
  require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
3
- $trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.6.1", "Widgets for Google Reviews", "Google");
4
  $trustindex_pm_google->uninstall();
5
  ?>
1
  <?php
2
  require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
3
+ $trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.6.2", "Widgets for Google Reviews", "Google");
4
  $trustindex_pm_google->uninstall();
5
  ?>
wp-reviews-plugin-for-google.php CHANGED
@@ -9,7 +9,7 @@ Author: Trustindex.io <support@trustindex.io>
9
  Author URI: https://www.trustindex.io/
10
  Contributors: trustindex
11
  License: GPLv2 or later
12
- Version: 9.6.1
13
  Text Domain: wp-reviews-plugin-for-google
14
  Domain Path: /languages/
15
  Donate link: https://www.trustindex.io/prices/
@@ -19,7 +19,7 @@ Copyright 2019 Trustindex Kft (email: support@trustindex.io)
19
  */
20
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
21
  require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
22
- $trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.6.1", "Widgets for Google Reviews", "Google");
23
  register_activation_hook(__FILE__, array($trustindex_pm_google, 'activate'));
24
  register_deactivation_hook(__FILE__, array($trustindex_pm_google, 'deactivate'));
25
  add_action('admin_menu', array($trustindex_pm_google, 'add_setting_menu'), 10);
@@ -37,7 +37,7 @@ global $trustindex_pm_google;
37
  if(!isset($trustindex_pm_google) || is_null($trustindex_pm_google))
38
  {
39
  require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
40
- $trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.6.1", "Widgets for Google Reviews", "Google");
41
  }
42
  $path = wp_upload_dir()['baseurl'] .'/'. $trustindex_pm_google->getCssFile(true);
43
  if(is_ssl())
9
  Author URI: https://www.trustindex.io/
10
  Contributors: trustindex
11
  License: GPLv2 or later
12
+ Version: 9.6.2
13
  Text Domain: wp-reviews-plugin-for-google
14
  Domain Path: /languages/
15
  Donate link: https://www.trustindex.io/prices/
19
  */
20
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
21
  require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
22
+ $trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.6.2", "Widgets for Google Reviews", "Google");
23
  register_activation_hook(__FILE__, array($trustindex_pm_google, 'activate'));
24
  register_deactivation_hook(__FILE__, array($trustindex_pm_google, 'deactivate'));
25
  add_action('admin_menu', array($trustindex_pm_google, 'add_setting_menu'), 10);
37
  if(!isset($trustindex_pm_google) || is_null($trustindex_pm_google))
38
  {
39
  require_once plugin_dir_path( __FILE__ ) . 'trustindex-plugin.class.php';
40
+ $trustindex_pm_google = new TrustindexPlugin_google("google", __FILE__, "9.6.2", "Widgets for Google Reviews", "Google");
41
  }
42
  $path = wp_upload_dir()['baseurl'] .'/'. $trustindex_pm_google->getCssFile(true);
43
  if(is_ssl())