Social Share Icons & Social Share Buttons - Version 3.5.7

Version Description

  • Adjusted PHP compatibility
Download this release

Release Info

Developer iclyde
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 3.5.7
Comparing to
See all releases

Code changes from version 3.5.6 to 3.5.7

analyst/main.php CHANGED
@@ -15,7 +15,7 @@ if (!function_exists('analyst_init')) {
15
  try {
16
  analyst_resolve_sdk($options['base-dir']);
17
  } catch (Exception $exception) {
18
- error_log('[ANALYST] Cannot resolve any supported SDK');
19
  return;
20
  }
21
 
@@ -30,7 +30,7 @@ if (!function_exists('analyst_init')) {
30
 
31
  $analyst->registerAccount(new Account\Account($options['client-id'], $options['client-secret'], $options['base-dir']));
32
  } catch (Exception $e) {
33
- error_log('Analyst SDK receive an error: [' . $e->getMessage() . '] Please contact our support at support@analyst.com');
34
  }
35
  }
36
  }
15
  try {
16
  analyst_resolve_sdk($options['base-dir']);
17
  } catch (Exception $exception) {
18
+ // error_log('[ANALYST] Cannot resolve any supported SDK');
19
  return;
20
  }
21
 
30
 
31
  $analyst->registerAccount(new Account\Account($options['client-id'], $options['client-secret'], $options['base-dir']));
32
  } catch (Exception $e) {
33
+ // error_log('Analyst SDK receive an error: [' . $e->getMessage() . '] Please contact our support at support@analyst.com');
34
  }
35
  }
36
  }
analyst/src/Account/Account.php CHANGED
@@ -243,8 +243,8 @@ class Account implements TrackerContract
243
  {
244
  if (!$this->isAllowingLogging()) return;
245
 
246
- $question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
247
- $reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
248
 
249
  DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
  ->execute($this->requestor);
243
  {
244
  if (!$this->isAllowingLogging()) return;
245
 
246
+ $question = isset($_POST['question']) ? sanitize_text_field(stripslashes($_POST['question'])) : null;
247
+ $reason = isset($_POST['reason']) ? sanitize_text_field(stripslashes($_POST['reason'])) : null;
248
 
249
  DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
  ->execute($this->requestor);
analyst/src/Collector.php CHANGED
@@ -153,7 +153,7 @@ class Collector
153
  */
154
  public function getServerIp()
155
  {
156
- return $_SERVER['SERVER_ADDR'];
157
  }
158
 
159
  /**
153
  */
154
  public function getServerIp()
155
  {
156
+ return sanitize_text_field($_SERVER['SERVER_ADDR']);
157
  }
158
 
159
  /**
analyst/src/Core/AbstractFactory.php CHANGED
@@ -12,7 +12,7 @@ abstract class AbstractFactory
12
  */
13
  protected static function unserialize($raw)
14
  {
15
- $instance = @unserialize($raw);
16
 
17
  $isProperObject = is_object($instance) && $instance instanceof static;
18
 
12
  */
13
  protected static function unserialize($raw)
14
  {
15
+ $instance = maybe_unserialize($raw);
16
 
17
  $isProperObject = is_object($instance) && $instance instanceof static;
18
 
analyst/src/Core/AbstractFactory.php~HEAD DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
-
3
- namespace Analyst\Core;
4
-
5
- abstract class AbstractFactory
6
- {
7
- /**
8
- * Unserialize to static::class instance
9
- *
10
- * @param $raw
11
- * @return static
12
- */
13
- protected static function unserialize($raw)
14
- {
15
- $instance = @unserialize($raw);
16
-
17
- $isProperObject = is_object($instance) && $instance instanceof static;
18
-
19
- // In case for some reason unserialized object is not
20
- // static::class we make sure it is static::class
21
- if (!$isProperObject) {
22
- $instance = new static();
23
- }
24
-
25
- return $instance;
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
analyst/src/Mutator.php CHANGED
@@ -60,10 +60,10 @@ class Mutator
60
 
61
  analyst_require_template('optin.php');
62
 
63
- analyst_require_template('forms/deactivate.php', [
64
- 'pencilImage' => analyst_assets_url('img/pencil.png'),
65
- 'smileImage' => analyst_assets_url('img/smile.png'),
66
- ]);
67
 
68
  analyst_require_template('forms/install.php', [
69
  'pluginToInstall' => $this->cache->get('plugin_to_install'),
@@ -95,7 +95,7 @@ class Mutator
95
  public function registerHooks()
96
  {
97
  add_action('wp_ajax_analyst_notification_dismiss', function () {
98
- $this->factory->remove($_POST['id']);
99
 
100
  $this->factory->sync();
101
  });
60
 
61
  analyst_require_template('optin.php');
62
 
63
+ // analyst_require_template('forms/deactivate.php', [
64
+ // 'pencilImage' => analyst_assets_url('img/pencil.png'),
65
+ // 'smileImage' => analyst_assets_url('img/smile.png'),
66
+ // ]);
67
 
68
  analyst_require_template('forms/install.php', [
69
  'pluginToInstall' => $this->cache->get('plugin_to_install'),
95
  public function registerHooks()
96
  {
97
  add_action('wp_ajax_analyst_notification_dismiss', function () {
98
+ $this->factory->remove(sanitize_text_field($_POST['id']));
99
 
100
  $this->factory->sync();
101
  });
analyst/src/helpers.php CHANGED
@@ -71,14 +71,3 @@ if (! function_exists('analyst_require_template')) {
71
  require analyst_templates_path($file);
72
  }
73
  }
74
-
75
- if (! function_exists('dd')) {
76
- /**
77
- * Dump some data
78
- */
79
- function dd ()
80
- {
81
- var_dump(func_get_args());
82
- die();
83
- }
84
- }
71
  require analyst_templates_path($file);
72
  }
73
  }
 
 
 
 
 
 
 
 
 
 
 
analyst/templates/forms/deactivate.php CHANGED
@@ -3,12 +3,12 @@
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-deactivate-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block" style="width: 80px">
6
- <img src="<?=$pencilImage?>"/>
7
  </div>
8
  <div class="analyst-install-description-block" style="padding-left: 20px">
9
  <strong class="analyst-modal-header">Why do you deactivate?</strong>
10
  <div class="analyst-install-description-text" style="padding-top: 2px">
11
- Please let us know, so we can improve it! Thank you <img class="analyst-smile-image" src="<?=$smileImage?>" alt="">
12
  </div>
13
  </div>
14
  </div>
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-deactivate-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block" style="width: 80px">
6
+ <img src="<?php echo $pencilImage; ?>"/>
7
  </div>
8
  <div class="analyst-install-description-block" style="padding-left: 20px">
9
  <strong class="analyst-modal-header">Why do you deactivate?</strong>
10
  <div class="analyst-install-description-text" style="padding-top: 2px">
11
+ Please let us know, so we can improve it! Thank you <img class="analyst-smile-image" src="<?php echo $smileImage; ?>" alt="">
12
  </div>
13
  </div>
14
  </div>
analyst/templates/forms/install.php CHANGED
@@ -1,20 +1,20 @@
1
- <div id="analyst-install-modal" class="analyst-modal ashutosh raj" style="display: none" analyst-plugin-id="<?=$pluginToInstall?>">
2
  <div class="analyst-modal-content" style="width: 450px">
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-install-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block">
6
- <img src="<?=$shieldImage?>"/>
7
  </div>
8
  <div class="analyst-install-description-block">
9
  <strong class="analyst-modal-header">Stay on the safe side</strong>
10
  <p class="analyst-install-description-text">Receive our plugin’s alerts in
11
- case of <strong>critical security</strong> & feature
12
  updates and allow non-sensitive
13
  diagnostic tracking.</p>
14
  </div>
15
  </div>
16
  <div class="analyst-modal-def-top-padding">
17
- <button class="analyst-btn-success" id="analyst-install-action">Allow & Continue ></button>
18
  </div>
19
  <div class="analyst-modal-def-top-padding" id="analyst-permissions-block" style="display: none">
20
  <span>You’re granting these permissions:</span>
@@ -101,13 +101,13 @@
101
  var poweredBy = $('#analyst-powered-by')
102
  isVisible ? poweredBy.show() : poweredBy.hide()
103
  })
104
- $('#analyst-install-skip').click(function () {
 
105
  var pluginId = $('#analyst-install-modal').attr('analyst-plugin-id')
106
 
107
- $.post(ajaxurl, {action: 'analyst_skip_install_' + pluginId}).done(function () {
108
- $('#analyst-install-modal').hide()
109
  })
110
- })
111
-
112
  })(jQuery)
113
  </script>
1
+ <div id="analyst-install-modal" class="analyst-modal" style="display: none" analyst-plugin-id="<?php echo $pluginToInstall; ?>">
2
  <div class="analyst-modal-content" style="width: 450px">
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-install-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block">
6
+ <img src="<?php echo $shieldImage; ?>"/>
7
  </div>
8
  <div class="analyst-install-description-block">
9
  <strong class="analyst-modal-header">Stay on the safe side</strong>
10
  <p class="analyst-install-description-text">Receive our plugin’s alerts in
11
+ case of <strong>critical security</strong>, feature & special deal
12
  updates and allow non-sensitive
13
  diagnostic tracking.</p>
14
  </div>
15
  </div>
16
  <div class="analyst-modal-def-top-padding">
17
+ <button class="analyst-btn-success" id="analyst-install-action">Allow & Continue &lt;</button>
18
  </div>
19
  <div class="analyst-modal-def-top-padding" id="analyst-permissions-block" style="display: none">
20
  <span>You’re granting these permissions:</span>
101
  var poweredBy = $('#analyst-powered-by')
102
  isVisible ? poweredBy.show() : poweredBy.hide()
103
  })
104
+
105
+ $('#analyst-install-skip').click(function () {
106
  var pluginId = $('#analyst-install-modal').attr('analyst-plugin-id')
107
 
108
+ $.post(ajaxurl, {action: 'analyst_skip_install_' + pluginId}).done(function () {
109
+ $('#analyst-install-modal').hide()
110
  })
111
+ })
 
112
  })(jQuery)
113
  </script>
analyst/templates/notice.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="notice notice-success analyst-notice">
2
  <p>
3
- <strong class="analyst-plugin-name"><?=$notice->getPluginName()?></strong>
4
- <?=$notice->getBody()?>
5
  </p>
6
 
7
- <button type="button" class="analyst-notice-dismiss notice-dismiss" analyst-notice-id="<?=$notice->getId()?>">
8
  <span class="screen-reader-text">Dismiss this notice.</span>
9
  </button>
10
  </div>
1
  <div class="notice notice-success analyst-notice">
2
  <p>
3
+ <strong class="analyst-plugin-name"><?php echo $notice->getPluginName(); ?></strong>
4
+ <?php echo $notice->getBody(); ?>
5
  </p>
6
 
7
+ <button type="button" class="analyst-notice-dismiss notice-dismiss" analyst-notice-id="<?php echo $notice->getId(); ?>">
8
  <span class="screen-reader-text">Dismiss this notice.</span>
9
  </button>
10
  </div>
analyst/templates/optin.php CHANGED
@@ -1,6 +1,3 @@
1
- <?php
2
- defined( 'ABSPATH' ) || exit;
3
- ?>
4
  <script type="text/javascript">
5
 
6
  (function ($) {
 
 
 
1
  <script type="text/javascript">
2
 
3
  (function ($) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialsharepro, socialtech
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
  Tested up to: 6.1.1
6
- Stable tag: 3.5.6
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  
@@ -298,6 +298,9 @@ The premium plugin offrs many more social buttons from other social media platfo
298
 
299
  == Changelog ==
300
 
 
 
 
301
  = 3.5.6 =
302
  * Added black-friday theme (only for that period)
303
  * Tested up to WordPress 6.1.1
@@ -914,6 +917,7 @@ The premium plugin offrs many more social buttons from other social media platfo
914
 
915
  == Upgrade Notice ==
916
 
917
- = 3.5.6 =
918
  * Added black-friday theme (only for that period)
919
  * Tested up to WordPress 6.1.1
 
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
  Tested up to: 6.1.1
6
+ Stable tag: 3.5.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  
298
 
299
  == Changelog ==
300
 
301
+ = 3.5.7 =
302
+ * Adjusted PHP compatibility
303
+
304
  = 3.5.6 =
305
  * Added black-friday theme (only for that period)
306
  * Tested up to WordPress 6.1.1
917
 
918
  == Upgrade Notice ==
919
 
920
+ = 3.5.7 =
921
  * Added black-friday theme (only for that period)
922
  * Tested up to WordPress 6.1.1
923
+ * Adjusted PHP compatibility
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 3.5.6
11
  License: GPLv2
12
  */
13
  if (!function_exists('get_plugins')) {
@@ -27,7 +27,7 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
27
 
28
  global $wpdb;
29
  /* define the Root for URL and Document */
30
- define( 'SFSI_PLUS_PLUGIN_VERSION', '3.5.6' );
31
  define('SFSI_PLUS_DOCROOT', dirname(__FILE__));
32
  // define('SFSI_PLUS_PLUGURL', plugin_dir_url(__FILE__));
33
  define('SFSI_PLUS_PLUGURL', site_url() . '/wp-content/plugins/ultimate-social-media-plus/');
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 3.5.7
11
  License: GPLv2
12
  */
13
  if (!function_exists('get_plugins')) {
27
 
28
  global $wpdb;
29
  /* define the Root for URL and Document */
30
+ define( 'SFSI_PLUS_PLUGIN_VERSION', '3.5.7' );
31
  define('SFSI_PLUS_DOCROOT', dirname(__FILE__));
32
  // define('SFSI_PLUS_PLUGURL', plugin_dir_url(__FILE__));
33
  define('SFSI_PLUS_PLUGURL', site_url() . '/wp-content/plugins/ultimate-social-media-plus/');