Social Media Share Buttons & Social Sharing Icons - Version 2.7.8

Version Description

  • Fixed issues with after post icons
  • Plugin tested with WordPress 6.1 @ PHP 8.1
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Media Share Buttons & Social Sharing Icons
Version 2.7.8
Comparing to
See all releases

Code changes from version 2.7.7 to 2.7.8

libs/controllers/sfsi_socialhelper.php CHANGED
@@ -335,7 +335,7 @@ class sfsi_SocialHelper
335
  // $fb_share_html .= '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button"></div>';
336
  // return $fb_share_html;
337
  $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
338
- $shareurl = $shareurl . urlencode(urldecode($permalink));
339
 
340
  $option5 = maybe_unserialize( get_option( 'sfsi_section5_options', false ) );
341
 
@@ -387,6 +387,8 @@ class sfsi_SocialHelper
387
 
388
  /* create on page twitter share icon */
389
  public function sfsi_twitterShare( $permalink, $tweettext, $icon ) {
 
 
390
  $twitter_html = "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>
391
  <a " . sfsi_checkNewWindow() . " href='https://twitter.com/intent/tweet?text=" . urlencode($tweettext).'+'.$permalink. "' style='display:inline-block' >
392
  <img data-pin-nopin= true class='sfsi_wicon' src='" . $icon . "' alt='Tweet' title='Tweet' >
@@ -397,6 +399,8 @@ class sfsi_SocialHelper
397
 
398
  /* create on page twitter share icon with count */
399
  public function sfsi_twitterSharewithcount( $permalink, $tweettext, $show_count, $rectangular_icon=false ) {
 
 
400
  $sfsi_section4 = maybe_unserialize(get_option('sfsi_section4_options', false));
401
  $socialObj = new sfsi_SocialHelper();
402
  $count_html ="";
335
  // $fb_share_html .= '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button"></div>';
336
  // return $fb_share_html;
337
  $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
338
+ $shareurl = $shareurl . esc_url($permalink);
339
 
340
  $option5 = maybe_unserialize( get_option( 'sfsi_section5_options', false ) );
341
 
387
 
388
  /* create on page twitter share icon */
389
  public function sfsi_twitterShare( $permalink, $tweettext, $icon ) {
390
+ $permalink = esc_url($permalink); /*Vulnerability*/
391
+
392
  $twitter_html = "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>
393
  <a " . sfsi_checkNewWindow() . " href='https://twitter.com/intent/tweet?text=" . urlencode($tweettext).'+'.$permalink. "' style='display:inline-block' >
394
  <img data-pin-nopin= true class='sfsi_wicon' src='" . $icon . "' alt='Tweet' title='Tweet' >
399
 
400
  /* create on page twitter share icon with count */
401
  public function sfsi_twitterSharewithcount( $permalink, $tweettext, $show_count, $rectangular_icon=false ) {
402
+ $permalink = esc_url($permalink); /*Vulnerability*/
403
+
404
  $sfsi_section4 = maybe_unserialize(get_option('sfsi_section4_options', false));
405
  $socialObj = new sfsi_SocialHelper();
406
  $count_html ="";
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -70,6 +70,8 @@ function sfsi_social_buttons_below( $content ) {
70
  /* check if option activated in admin or not */
71
  if ( $sfsi_section9["sfsi_show_via_afterposts"] == "yes" && $sfsi_section6["sfsi_display_button_type"] == "standard_buttons" ) {
72
  $permalink = add_query_arg( $_GET ? $_GET : array(), get_permalink( $post->ID ) );
 
 
73
  $title = get_the_title();
74
  $sfsiLikeWith = "45px;";
75
  /* check for counter display */
@@ -342,7 +344,7 @@ function sfsi_FBlike($permalink, $show_count)
342
  function sfsiFB_Share_Custom($permalink, $show_count = false)
343
  {
344
  $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
345
- $shareurl = $shareurl . urlencode(urldecode($permalink));
346
 
347
  $option5 = maybe_unserialize( get_option( 'sfsi_section5_options', false ) );
348
 
70
  /* check if option activated in admin or not */
71
  if ( $sfsi_section9["sfsi_show_via_afterposts"] == "yes" && $sfsi_section6["sfsi_display_button_type"] == "standard_buttons" ) {
72
  $permalink = add_query_arg( $_GET ? $_GET : array(), get_permalink( $post->ID ) );
73
+ $permalink = esc_url( $permalink );
74
+
75
  $title = get_the_title();
76
  $sfsiLikeWith = "45px;";
77
  /* check for counter display */
344
  function sfsiFB_Share_Custom($permalink, $show_count = false)
345
  {
346
  $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
347
+ $shareurl = $shareurl . $permalink;
348
 
349
  $option5 = maybe_unserialize( get_option( 'sfsi_section5_options', false ) );
350
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: socialdude, socialtech
3
  Tags: share, social, share icons, social media, widget, sharing icons, sharing buttons, social share, sharing
4
  Requires at least: 3.5
5
- Tested up to: 6.0.2
6
- Stable tag: 2.7.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -301,6 +301,11 @@ It depends on which language you speak :) however probably the answer is “yes
301
 
302
 
303
  == Changelog ==
 
 
 
 
 
304
  = 2.7.7 =
305
  * Added: support for no-opener tag on links
306
  * Added: support for twitter:image tag
@@ -1077,9 +1082,7 @@ It depends on which language you speak :) however probably the answer is “yes
1077
  * First release
1078
 
1079
  == Upgrade Notice ==
1080
- = 2.7.7 =
1081
- * Added: support for no-opener tag on links
1082
- * Added: support for twitter:image tag
1083
- * Update: make twitter and facebook icons crawlable
1084
- * Update: enable sharing of homepage for certain icons
1085
- * Fixed: issue of plugin breaking the widget page
2
  Contributors: socialdude, socialtech
3
  Tags: share, social, share icons, social media, widget, sharing icons, sharing buttons, social share, sharing
4
  Requires at least: 3.5
5
+ Tested up to: 6.1
6
+ Stable tag: 2.7.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
301
 
302
 
303
  == Changelog ==
304
+
305
+ = 2.7.8 =
306
+ * Fixed issues with after post icons
307
+ * Plugin tested with WordPress 6.1 @ PHP 8.1
308
+
309
  = 2.7.7 =
310
  * Added: support for no-opener tag on links
311
  * Added: support for twitter:image tag
1082
  * First release
1083
 
1084
  == Upgrade Notice ==
1085
+
1086
+ = 2.7.8 =
1087
+ * Fixed issues with after post icons
1088
+ * Plugin tested with WordPress 6.1 @ PHP 8.1
 
 
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
  Text Domain: ultimate-social-media-icons
9
  Domain Path: /languages
10
- Version: 2.7.7
11
  License: GPLv2 or later
12
  */
13
  require_once 'analyst/main.php';
@@ -23,7 +23,7 @@ sfsi_error_reporting();
23
 
24
  global $wpdb;
25
  /* define the Root for URL and Document */
26
- define( 'SFSI_PLUGIN_VERSION', '2.7.7' );
27
  define( 'SFSI_DOCROOT', dirname( __FILE__ ) );
28
 
29
  define( 'SFSI_PLUGURL', plugin_dir_url( __FILE__ ) );
7
  Author URI: http://ultimatelysocial.com
8
  Text Domain: ultimate-social-media-icons
9
  Domain Path: /languages
10
+ Version: 2.7.8
11
  License: GPLv2 or later
12
  */
13
  require_once 'analyst/main.php';
23
 
24
  global $wpdb;
25
  /* define the Root for URL and Document */
26
+ define( 'SFSI_PLUGIN_VERSION', '2.7.8' );
27
  define( 'SFSI_DOCROOT', dirname( __FILE__ ) );
28
 
29
  define( 'SFSI_PLUGURL', plugin_dir_url( __FILE__ ) );