Version Description
- [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 6.6.3 |
Comparing to | |
See all releases |
Code changes from version 6.6.2 to 6.6.3
- inc/social_sharing.php +23 -15
- readme.txt +8 -2
- super_socializer.php +2 -2
inc/social_sharing.php
CHANGED
@@ -17,6 +17,10 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $
|
|
17 |
}else{
|
18 |
$postTitle = $post->post_title;
|
19 |
}
|
|
|
|
|
|
|
|
|
20 |
$postUrl = (isset($theChampSharingOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $postUrl;
|
21 |
if(!isset($theChampSharingOptions['horizontal_sharing_size'])){
|
22 |
$theChampSharingOptions['horizontal_sharing_size'] = 30;
|
@@ -67,30 +71,30 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $
|
|
67 |
if($provider == 'print'){
|
68 |
$liItems .= '<i ' .$style. ' alt="Print" Title="Print" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick=\'window.print()\'><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
69 |
}elseif($provider == 'email'){
|
70 |
-
$liItems .= '<i ' .$style. ' alt="Email" Title="Email" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick="window.location.href = \'mailto:?subject=\' + decodeURIComponent(\''.
|
71 |
}else{
|
72 |
if($provider == 'facebook'){
|
73 |
$sharingUrl = 'https://www.facebook.com/sharer/sharer.php?u=' . $postUrl;
|
74 |
}elseif($provider == 'twitter'){
|
75 |
-
$sharingUrl = 'http://twitter.com/intent/tweet?'. (isset($theChampSharingOptions['twitter_username']) && $theChampSharingOptions['twitter_username'] != '' ? 'via=' . $theChampSharingOptions['twitter_username'] . '&' : '') . 'text=' .
|
76 |
}elseif($provider == 'linkedin'){
|
77 |
-
$sharingUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' . $postUrl . '&title=' .
|
78 |
}elseif($provider == 'google'){
|
79 |
$sharingUrl = 'https://plus.google.com/share?url=' . $postUrl;
|
80 |
}elseif($provider == 'yahoo'){
|
81 |
-
$sharingUrl = 'http://bookmarks.yahoo.com/toolbar/SaveBM/?u=' . $postUrl . '&t=' .
|
82 |
}elseif($provider == 'reddit'){
|
83 |
-
$sharingUrl = 'http://reddit.com/submit?url='.$postUrl.'&title=' .
|
84 |
}elseif($provider == 'digg'){
|
85 |
-
$sharingUrl = 'http://digg.com/submit?url='.$postUrl.'&title=' .
|
86 |
}elseif($provider == 'delicious'){
|
87 |
-
$sharingUrl = 'http://del.icio.us/post?url='.$postUrl.'&title=' .
|
88 |
}elseif($provider == 'stumbleupon'){
|
89 |
-
$sharingUrl = 'http://www.stumbleupon.com/submit?url='.$postUrl.'&title=' .
|
90 |
}elseif($provider == 'float it'){
|
91 |
-
$sharingUrl = 'http://www.designfloat.com/submit.php?url='.$postUrl.'&title=' .
|
92 |
}elseif($provider == 'tumblr'){
|
93 |
-
$sharingUrl = 'http://www.tumblr.com/share?v=3&u='.urlencode($postUrl).'&t=' .
|
94 |
}elseif($provider == 'vkontakte'){
|
95 |
$sharingUrl = 'http://vkontakte.ru/share.php?&url='.urlencode($postUrl);
|
96 |
}elseif($provider == 'xing'){
|
@@ -98,9 +102,9 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $
|
|
98 |
}elseif($provider == 'whatsapp'){
|
99 |
$sharingUrl = 'whatsapp://send?text=' . urlencode($postTitle . ' ' . $postUrl);
|
100 |
}elseif($provider == 'yummly'){
|
101 |
-
$sharingUrl = 'http://www.yummly.com/urb/verify?url=' . urlencode($postUrl) . '&title=' .
|
102 |
}elseif($provider == 'buffer'){
|
103 |
-
$sharingUrl = 'https://buffer.com/add?url=' . urlencode($postUrl) . '&title=' .
|
104 |
}elseif($provider == 'pinterest'){
|
105 |
$sharingUrl = "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());";
|
106 |
}
|
@@ -120,7 +124,7 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $
|
|
120 |
if($displayCount){
|
121 |
$liItems .= $counterContainerInitHtml . '"> ' . $counterContainerEndHtml;
|
122 |
}
|
123 |
-
$liItems .= '<i ' .$style. ' title="More" alt="More" class="theChampSharing theChampMoreBackground" onclick="theChampMoreSharingPopup(this, \''.$postUrl.'\', \''
|
124 |
}
|
125 |
|
126 |
$totalSharesHtml = '';
|
@@ -163,6 +167,10 @@ function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $
|
|
163 |
}else{
|
164 |
$postTitle = $post->post_title;
|
165 |
}
|
|
|
|
|
|
|
|
|
166 |
$shortUrl = (isset($theChampCounterOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $shortUrl;
|
167 |
$output = apply_filters('the_champ_counter_interface_filter', '', $postUrl, $shortUrl, $sharingType, $theChampCounterOptions, $post);
|
168 |
if($output != ''){
|
@@ -178,7 +186,7 @@ function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $
|
|
178 |
}elseif($provider == 'facebook_recommend'){
|
179 |
$html .= '<li class="the_champ_facebook_recommend"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="recommend" data-show-faces="false" data-share="false"></div></li>';
|
180 |
}elseif($provider == 'twitter_tweet'){
|
181 |
-
$html .= '<li class="the_champ_twitter_tweet" heateor-ss-data-href="'. $postUrl .'"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'. $shortUrl .'" data-counturl="'. $postUrl .'" data-text="'.
|
182 |
}elseif($provider == 'linkedin_share'){
|
183 |
$html .= '<li class="the_champ_linkedin_share"><script src="//platform.linkedin.com/in.js" type="text/javascript">lang: '. $language .'</script><script type="IN/Share" data-url="' . $postUrl . '" data-counter="right"></script></li>';
|
184 |
}elseif($provider == 'google_plusone'){
|
@@ -192,7 +200,7 @@ function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $
|
|
192 |
}elseif($provider == 'yummly'){
|
193 |
$html .= '<li class="the_champ_yummly"><a href="//yummly.com" class="YUMMLY-YUM-BUTTON">Yum</a><script src="https://www.yummly.com/js/widget.js?general"></script></li>';
|
194 |
}elseif($provider == 'buffer'){
|
195 |
-
$html .= '<li class="the_champ_buffer"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="' .
|
196 |
}elseif($provider == 'xing'){
|
197 |
$html .= '<li class="the_champ_xing"><div data-type="XING/Share" data-counter="right" data-url="'. $postUrl .'" data-lang="'. $language .'"></div><script>(function (d, s) {var x = d.createElement(s), s = d.getElementsByTagName(s)[0]; x.src = "https://www.xing-share.com/js/external/share.js"; s.parentNode.insertBefore(x, s); })(document, "script");</script></li>';
|
198 |
}elseif($provider == 'stumbleupon_badge'){
|
17 |
}else{
|
18 |
$postTitle = $post->post_title;
|
19 |
}
|
20 |
+
$postTitle = html_entity_decode($postTitle, ENT_QUOTES, 'UTF-8');
|
21 |
+
$postTitle = urlencode($postTitle);
|
22 |
+
$postTitle = str_replace('#', '%23', $postTitle);
|
23 |
+
$postTitle = esc_html($postTitle);
|
24 |
$postUrl = (isset($theChampSharingOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $postUrl;
|
25 |
if(!isset($theChampSharingOptions['horizontal_sharing_size'])){
|
26 |
$theChampSharingOptions['horizontal_sharing_size'] = 30;
|
71 |
if($provider == 'print'){
|
72 |
$liItems .= '<i ' .$style. ' alt="Print" Title="Print" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick=\'window.print()\'><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
73 |
}elseif($provider == 'email'){
|
74 |
+
$liItems .= '<i ' .$style. ' alt="Email" Title="Email" class="theChampSharing theChamp'. ucfirst($provider) .'Background" onclick="window.location.href = \'mailto:?subject=\' + decodeURIComponent(\''. $postTitle .'\') + \'&body=\' + decodeURIComponent(\''.$postUrl.'\')"><ss style="display:block" class="theChampSharingSvg theChamp'. ucfirst($provider) .'Svg"></ss></i>';
|
75 |
}else{
|
76 |
if($provider == 'facebook'){
|
77 |
$sharingUrl = 'https://www.facebook.com/sharer/sharer.php?u=' . $postUrl;
|
78 |
}elseif($provider == 'twitter'){
|
79 |
+
$sharingUrl = 'http://twitter.com/intent/tweet?'. (isset($theChampSharingOptions['twitter_username']) && $theChampSharingOptions['twitter_username'] != '' ? 'via=' . $theChampSharingOptions['twitter_username'] . '&' : '') . 'text=' . $postTitle .'&url=' . $postUrl;
|
80 |
}elseif($provider == 'linkedin'){
|
81 |
+
$sharingUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' . $postUrl . '&title=' . $postTitle;
|
82 |
}elseif($provider == 'google'){
|
83 |
$sharingUrl = 'https://plus.google.com/share?url=' . $postUrl;
|
84 |
}elseif($provider == 'yahoo'){
|
85 |
+
$sharingUrl = 'http://bookmarks.yahoo.com/toolbar/SaveBM/?u=' . $postUrl . '&t=' . $postTitle;
|
86 |
}elseif($provider == 'reddit'){
|
87 |
+
$sharingUrl = 'http://reddit.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
88 |
}elseif($provider == 'digg'){
|
89 |
+
$sharingUrl = 'http://digg.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
90 |
}elseif($provider == 'delicious'){
|
91 |
+
$sharingUrl = 'http://del.icio.us/post?url='.$postUrl.'&title=' . $postTitle;
|
92 |
}elseif($provider == 'stumbleupon'){
|
93 |
+
$sharingUrl = 'http://www.stumbleupon.com/submit?url='.$postUrl.'&title=' . $postTitle;
|
94 |
}elseif($provider == 'float it'){
|
95 |
+
$sharingUrl = 'http://www.designfloat.com/submit.php?url='.$postUrl.'&title=' . $postTitle;
|
96 |
}elseif($provider == 'tumblr'){
|
97 |
+
$sharingUrl = 'http://www.tumblr.com/share?v=3&u='.urlencode($postUrl).'&t=' . $postTitle . '&s=';
|
98 |
}elseif($provider == 'vkontakte'){
|
99 |
$sharingUrl = 'http://vkontakte.ru/share.php?&url='.urlencode($postUrl);
|
100 |
}elseif($provider == 'xing'){
|
102 |
}elseif($provider == 'whatsapp'){
|
103 |
$sharingUrl = 'whatsapp://send?text=' . urlencode($postTitle . ' ' . $postUrl);
|
104 |
}elseif($provider == 'yummly'){
|
105 |
+
$sharingUrl = 'http://www.yummly.com/urb/verify?url=' . urlencode($postUrl) . '&title=' . $postTitle;
|
106 |
}elseif($provider == 'buffer'){
|
107 |
+
$sharingUrl = 'https://buffer.com/add?url=' . urlencode($postUrl) . '&title=' . $postTitle;
|
108 |
}elseif($provider == 'pinterest'){
|
109 |
$sharingUrl = "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());";
|
110 |
}
|
124 |
if($displayCount){
|
125 |
$liItems .= $counterContainerInitHtml . '"> ' . $counterContainerEndHtml;
|
126 |
}
|
127 |
+
$liItems .= '<i ' .$style. ' title="More" alt="More" class="theChampSharing theChampMoreBackground" onclick="theChampMoreSharingPopup(this, \''.$postUrl.'\', \''.$postTitle.'\')" ><ss style="display:block" class="theChampSharingSvg theChampMoreSvg"></ss></i></li>';
|
128 |
}
|
129 |
|
130 |
$totalSharesHtml = '';
|
167 |
}else{
|
168 |
$postTitle = $post->post_title;
|
169 |
}
|
170 |
+
$postTitle = html_entity_decode($postTitle, ENT_QUOTES, 'UTF-8');
|
171 |
+
$postTitle = urlencode($postTitle);
|
172 |
+
$postTitle = str_replace('#', '%23', $postTitle);
|
173 |
+
$postTitle = esc_html($postTitle);
|
174 |
$shortUrl = (isset($theChampCounterOptions['use_shortlink']) && function_exists('wp_get_shortlink')) ? wp_get_shortlink() : $shortUrl;
|
175 |
$output = apply_filters('the_champ_counter_interface_filter', '', $postUrl, $shortUrl, $sharingType, $theChampCounterOptions, $post);
|
176 |
if($output != ''){
|
186 |
}elseif($provider == 'facebook_recommend'){
|
187 |
$html .= '<li class="the_champ_facebook_recommend"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="recommend" data-show-faces="false" data-share="false"></div></li>';
|
188 |
}elseif($provider == 'twitter_tweet'){
|
189 |
+
$html .= '<li class="the_champ_twitter_tweet" heateor-ss-data-href="'. $postUrl .'"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'. $shortUrl .'" data-counturl="'. $postUrl .'" data-text="'. $postTitle .'" data-via="'. (isset($theChampCounterOptions['twitter_username']) && $theChampCounterOptions['twitter_username'] != '' ? $theChampCounterOptions['twitter_username'] : '') .'" data-lang="'. $language .'" >Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "twitter-wjs");</script></li>';
|
190 |
}elseif($provider == 'linkedin_share'){
|
191 |
$html .= '<li class="the_champ_linkedin_share"><script src="//platform.linkedin.com/in.js" type="text/javascript">lang: '. $language .'</script><script type="IN/Share" data-url="' . $postUrl . '" data-counter="right"></script></li>';
|
192 |
}elseif($provider == 'google_plusone'){
|
200 |
}elseif($provider == 'yummly'){
|
201 |
$html .= '<li class="the_champ_yummly"><a href="//yummly.com" class="YUMMLY-YUM-BUTTON">Yum</a><script src="https://www.yummly.com/js/widget.js?general"></script></li>';
|
202 |
}elseif($provider == 'buffer'){
|
203 |
+
$html .= '<li class="the_champ_buffer"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="' . $postTitle . '" data-url="' . $postUrl . '" data-count="horizontal" data-via="'. (isset($theChampCounterOptions['buffer_username']) && $theChampCounterOptions['buffer_username'] != '' ? $theChampCounterOptions['buffer_username'] : '') .'" ></a><script type="text/javascript" src="https://d389zggrogs7qo.cloudfront.net/js/button.js"></script></li>';
|
204 |
}elseif($provider == 'xing'){
|
205 |
$html .= '<li class="the_champ_xing"><div data-type="XING/Share" data-counter="right" data-url="'. $postUrl .'" data-lang="'. $language .'"></div><script>(function (d, s) {var x = d.createElement(s), s = d.getElementsByTagName(s)[0]; x.src = "https://www.xing-share.com/js/external/share.js"; s.parentNode.insertBefore(x, s); })(document, "script");</script></li>';
|
206 |
}elseif($provider == 'stumbleupon_badge'){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/add-ons
|
|
4 |
Tags: the champ, champ, social login, social sharing, social commenting, social comments, social plugin, buddypress, bbpress, social share, comments, share post, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, social sign-in, signin, sign up, signup, social connect, facebook login, twitter login, google login, google+ login, linkedin login, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, social network
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 6.6.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The unique Social Plugin to let you integrate Social Login, Social Share and Social Comments at your website
|
@@ -198,6 +198,9 @@ Yes, we can help you with it. Just drop an email at support@heateor.com
|
|
198 |
8. **Social Commenting**: Disqus Commenting selected
|
199 |
|
200 |
== Changelog ==
|
|
|
|
|
|
|
201 |
= 6.6.2 =
|
202 |
* [Bugfix] Single quote in article title was breaking Twitter sharing functionality
|
203 |
|
@@ -700,4 +703,7 @@ Yes, we can help you with it. Just drop an email at support@heateor.com
|
|
700 |
* [Bugfix] Vertical sharing/like buttons interface at homepage was using title of first post on the page instead of that of homepage
|
701 |
|
702 |
= 6.6.2 =
|
703 |
-
* [Bugfix] Single quote in article title was breaking Twitter sharing functionality
|
|
|
|
|
|
4 |
Tags: the champ, champ, social login, social sharing, social commenting, social comments, social plugin, buddypress, bbpress, social share, comments, share post, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, social sign-in, signin, sign up, signup, social connect, facebook login, twitter login, google login, google+ login, linkedin login, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, social network
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 6.6.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The unique Social Plugin to let you integrate Social Login, Social Share and Social Comments at your website
|
198 |
8. **Social Commenting**: Disqus Commenting selected
|
199 |
|
200 |
== Changelog ==
|
201 |
+
= 6.6.3 =
|
202 |
+
* [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
|
203 |
+
|
204 |
= 6.6.2 =
|
205 |
* [Bugfix] Single quote in article title was breaking Twitter sharing functionality
|
206 |
|
703 |
* [Bugfix] Vertical sharing/like buttons interface at homepage was using title of first post on the page instead of that of homepage
|
704 |
|
705 |
= 6.6.2 =
|
706 |
+
* [Bugfix] Single quote in article title was breaking Twitter sharing functionality
|
707 |
+
|
708 |
+
= 6.6.3 =
|
709 |
+
* [Bugfix] Garbled characters were appearing in Twitter sharing content, on non-English websites in some cases
|
super_socializer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
-
Version: 6.6.
|
7 |
Author: Team Heateor
|
8 |
Author URI: http://www.heateor.com
|
9 |
Text Domain: Super-Socializer
|
@@ -11,7 +11,7 @@ Domain Path: /languages
|
|
11 |
License: GPL2+
|
12 |
*/
|
13 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
14 |
-
define('THE_CHAMP_SS_VERSION', '6.6.
|
15 |
|
16 |
$theChampLoginOptions = get_option('the_champ_login');
|
17 |
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
+
Version: 6.6.3
|
7 |
Author: Team Heateor
|
8 |
Author URI: http://www.heateor.com
|
9 |
Text Domain: Super-Socializer
|
11 |
License: GPL2+
|
12 |
*/
|
13 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
14 |
+
define('THE_CHAMP_SS_VERSION', '6.6.3');
|
15 |
|
16 |
$theChampLoginOptions = get_option('the_champ_login');
|
17 |
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|