WordPress Social Sharing Plugin – Sassy Social Share - Version 3.1.1

Version Description

  • [Improvement] Social Share dialogue was being opened in new tab instead of the popup window, in the latest version of Google Chrome browser
Download this release

Release Info

Developer Heateor
Plugin Icon 128x128 WordPress Social Sharing Plugin – Sassy Social Share
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1 to 3.1.1

includes/class-sassy-social-share-shortcodes.php CHANGED
@@ -123,14 +123,7 @@ class Sassy_Social_Share_Shortcodes {
123
  $html .= $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $target_url, $type == 'standard' ? 'horizontal' : 'vertical', $count, $total_shares == 'ON' ? 1 : 0 );
124
  $html .= '</div>';
125
  if ( ( $count || $total_shares == 'ON' ) && $cached_share_count === false ) {
126
- $html .= '<script>heateorSssLoadEvent(
127
- function() {
128
- // sharing counts
129
- heateorSssCallAjax(function() {
130
- heateorSssGetSharingCounts();
131
- });
132
- }
133
- );</script>';
134
  }
135
  return $html;
136
  }
123
  $html .= $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $target_url, $type == 'standard' ? 'horizontal' : 'vertical', $count, $total_shares == 'ON' ? 1 : 0 );
124
  $html .= '</div>';
125
  if ( ( $count || $total_shares == 'ON' ) && $cached_share_count === false ) {
126
+ $html .= '<script>heateorSssLoadEvent(function(){heateorSssCallAjax(function(){heateorSssGetSharingCounts();});});</script>';
 
 
 
 
 
 
 
127
  }
128
  return $html;
129
  }
public/class-sassy-social-share-public.php CHANGED
@@ -120,7 +120,7 @@ class Sassy_Social_Share_Public {
120
  $inline_script .= ! isset( $this->options['vertical_counter_position'] ) || in_array( $this->options['vertical_counter_position'], array( 'inner_top', 'inner_bottom' ) ) ? 'var heateorSssReduceVerticalSvgHeight = true;' : '';
121
  }
122
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
123
- $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes")}';
124
  if ( $this->facebook_like_recommend_enabled() || $this->facebook_share_enabled() ) {
125
  $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v2.5"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->facebook_like_recommend_enabled() ? 1 : 0 ) . '&&(FB.Event.subscribe("edge.create",function(e) {heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"")}),FB.Event.subscribe("edge.remove",function(e) {heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"","Minus point(s) for undoing Facebook like-recommend")}) ),'. ( defined( 'HEATEOR_SHARING_GOOGLE_ANALYTICS_VERSION' ) ? 1 : 0 ) .'&&(FB.Event.subscribe("edge.create",function(e) {heateorSsgaSocialPluginsTracking("Facebook","Like",e?e:"")}),FB.Event.subscribe("edge.remove",function(e) {heateorSsgaSocialPluginsTracking("Facebook","Unlike",e?e:"")}) )},function(e) {var n,i="facebook-jssdk",o=e.getElementsByTagName("script")[0];e.getElementById(i)||(n=e.createElement("script"),n.id=i,n.async=!0,n.src="//connect.facebook.net/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
126
  }
120
  $inline_script .= ! isset( $this->options['vertical_counter_position'] ) || in_array( $this->options['vertical_counter_position'], array( 'inner_top', 'inner_bottom' ) ) ? 'var heateorSssReduceVerticalSvgHeight = true;' : '';
121
  }
122
  $inline_script .= 'var heateorSssUrlCountFetched = [], heateorSssSharesText = \''. htmlspecialchars(__('Shares', 'sassy-social-share'), ENT_QUOTES) .'\', heateorSssShareText = \''. htmlspecialchars(__('Share', 'sassy-social-share'), ENT_QUOTES) .'\';';
123
+ $inline_script .= 'function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}';
124
  if ( $this->facebook_like_recommend_enabled() || $this->facebook_share_enabled() ) {
125
  $inline_script .= 'function heateorSssInitiateFB() {FB.init({appId:"",channelUrl:"",status:!0,cookie:!0,xfbml:!0,version:"v2.5"})}window.fbAsyncInit=function() {heateorSssInitiateFB(),' . ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && $this->facebook_like_recommend_enabled() ? 1 : 0 ) . '&&(FB.Event.subscribe("edge.create",function(e) {heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"")}),FB.Event.subscribe("edge.remove",function(e) {heateorSsmiMycredPoints("Facebook_like_recommend","",e?e:"","Minus point(s) for undoing Facebook like-recommend")}) ),'. ( defined( 'HEATEOR_SHARING_GOOGLE_ANALYTICS_VERSION' ) ? 1 : 0 ) .'&&(FB.Event.subscribe("edge.create",function(e) {heateorSsgaSocialPluginsTracking("Facebook","Like",e?e:"")}),FB.Event.subscribe("edge.remove",function(e) {heateorSsgaSocialPluginsTracking("Facebook","Unlike",e?e:"")}) )},function(e) {var n,i="facebook-jssdk",o=e.getElementsByTagName("script")[0];e.getElementById(i)||(n=e.createElement("script"),n.id=i,n.async=!0,n.src="//connect.facebook.net/'. ( $this->options['language'] ? $this->options['language'] : 'en_US' ) .'/sdk.js",o.parentNode.insertBefore(n,o) )}(document);';
126
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, google +1, google plus share
5
  Requires at least: 2.5.0
6
  Tested up to: 4.8
7
- Stable tag: 3.1
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
@@ -112,6 +112,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
112
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
113
 
114
  == Changelog ==
 
 
 
115
  = 3.1 =
116
  * [Bugfix] Share counts were being cached even when "Refresh Share Count cache every" option (in "Miscellaneous" section) was kept blank
117
 
@@ -414,4 +417,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
414
  * [Bugfix] Share icons were not appearing at the webpages built using <a href="https://wordpress.org/plugins/elementor/">Elementor</a> plugin
415
 
416
  = 3.1 =
417
- * [Bugfix] Share counts were being cached even when "Refresh Share Count cache every" option (in "Miscellaneous" section) was kept blank
 
 
 
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, google +1, google plus share
5
  Requires at least: 2.5.0
6
  Tested up to: 4.8
7
+ Stable tag: 3.1.1
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
112
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
113
 
114
  == Changelog ==
115
+ = 3.1.1 =
116
+ * [Improvement] Social Share dialogue was being opened in new tab instead of the popup window, in the latest version of Google Chrome browser
117
+
118
  = 3.1 =
119
  * [Bugfix] Share counts were being cached even when "Refresh Share Count cache every" option (in "Miscellaneous" section) was kept blank
120
 
417
  * [Bugfix] Share icons were not appearing at the webpages built using <a href="https://wordpress.org/plugins/elementor/">Elementor</a> plugin
418
 
419
  = 3.1 =
420
+ * [Bugfix] Share counts were being cached even when "Refresh Share Count cache every" option (in "Miscellaneous" section) was kept blank
421
+
422
+ = 3.1.1 =
423
+ * [Improvement] Social Share dialogue was being opened in new tab instead of the popup window, in the latest version of Google Chrome browser
sassy-social-share.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
10
- * Version: 3.1
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
@@ -21,7 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
21
  die;
22
  }
23
 
24
- define( 'HEATEOR_SSS_VERSION', '3.1' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
10
+ * Version: 3.1.1
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
21
  die;
22
  }
23
 
24
+ define( 'HEATEOR_SSS_VERSION', '3.1.1' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object