WordPress Social Sharing Plugin – Sassy Social Share - Version 3.2.5

Version Description

  • [Bugfix] Twitter share counts disappeared as newsharecounts.com went dead
Download this release

Release Info

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

Code changes from version 3.2.4 to 3.2.5

admin/class-sassy-social-share-admin.php CHANGED
@@ -432,6 +432,18 @@ class Sassy_Social_Share_Admin {
432
 
433
  }
434
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  /**
436
  * Save GDPR notification flag in DB
437
  *
@@ -485,6 +497,56 @@ class Sassy_Social_Share_Admin {
485
  <?php
486
  }
487
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
488
  }
489
 
490
  }
@@ -532,6 +594,11 @@ class Sassy_Social_Share_Admin {
532
  heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
533
  }
534
 
 
 
 
 
 
535
  if ( version_compare( "3.2.4", $current_version ) > 0 ) {
536
  if ( isset( $this->options['horizontal_re_providers'] ) ) {
537
  foreach( $this->options['horizontal_re_providers'] as $key => $social_network ) {
432
 
433
  }
434
 
435
+ /**
436
+ * Save Twitter share count notification flag in DB
437
+ *
438
+ * @since 3.2.5
439
+ */
440
+ public function twitter_share_notification_read() {
441
+
442
+ update_option( 'heateor_sss_twitter_share_notification_read', '1' );
443
+ die;
444
+
445
+ }
446
+
447
  /**
448
  * Save GDPR notification flag in DB
449
  *
497
  <?php
498
  }
499
  }
500
+
501
+ if ( version_compare( '3.2.5', $this->version ) <= 0 ) {
502
+ if ( (isset( $this->options['hor_enable'] ) && isset( $this->options['horizontal_re_providers'] ) && in_array( 'twitter', $this->options['horizontal_re_providers'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ) || ( isset( $this->options['vertical_enable'] ) && isset( $this->options['vertical_re_providers'] ) && in_array( 'twitter', $this->options['vertical_re_providers'] ) && ( isset($this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ) ) {
503
+ if ( ! get_option( 'heateor_sss_twitter_share_notification_read' ) ) {
504
+ ?>
505
+ <script type="text/javascript">
506
+ function heateorSssTwitterShareNotificationRead(){
507
+ jQuery.ajax({
508
+ type: 'GET',
509
+ url: '<?php echo get_admin_url() ?>admin-ajax.php',
510
+ data: {
511
+ action: 'heateor_sss_twitter_share_notification_read'
512
+ },
513
+ success: function(data, textStatus, XMLHttpRequest){
514
+ jQuery('#heateor_sss_twitter_share_notification').fadeOut();
515
+ }
516
+ });
517
+ }
518
+ </script>
519
+ <div id="heateor_sss_twitter_share_notification" class="update-nag">
520
+ <h3>Sassy Social Share</h3>
521
+ <p><?php echo sprintf( __( 'Twitter share counts are no longer working as newsharecounts.com is down. To continue showing the Twitter shares, just sign up <a href="%s" target="_blank">here</a> with this domain. No other steps needed.', 'sassy-social-share' ), 'https://opensharecount.com' ); ?><input type="button" onclick="heateorSssTwitterShareNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
522
+ </div>
523
+ <?php
524
+ }
525
+ }
526
+
527
+ if ( ! get_option( 'heateor_sss_gdpr_notification_read' ) ) {
528
+ ?>
529
+ <script type="text/javascript">
530
+ function heateorSssGDPRNotificationRead(){
531
+ jQuery.ajax({
532
+ type: 'GET',
533
+ url: '<?php echo get_admin_url() ?>admin-ajax.php',
534
+ data: {
535
+ action: 'heateor_sss_gdpr_notification_read'
536
+ },
537
+ success: function(data, textStatus, XMLHttpRequest){
538
+ jQuery('#heateor_sss_gdpr_notification').fadeOut();
539
+ }
540
+ });
541
+ }
542
+ </script>
543
+ <div id="heateor_sss_gdpr_notification" class="update-nag">
544
+ <h3>Sassy Social Share</h3>
545
+ <p><?php echo sprintf( __( 'This plugin is GDPR compliant. You need to update the privacy policy of your website regarding the personal data this plugin saves, as mentioned <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'http://support.heateor.com/gdpr-and-our-plugins' ); ?><input type="button" onclick="heateorSssGDPRNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
546
+ </div>
547
+ <?php
548
+ }
549
+ }
550
  }
551
 
552
  }
594
  heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
595
  }
596
 
597
+ if ( version_compare( '3.2.5', $current_version ) > 0 ) {
598
+ $this->options['tweet_count_service'] = 'opensharecount';
599
+ update_option( 'heateor_sss', $this->options );
600
+ }
601
+
602
  if ( version_compare( "3.2.4", $current_version ) > 0 ) {
603
  if ( isset( $this->options['horizontal_re_providers'] ) ) {
604
  foreach( $this->options['horizontal_re_providers'] as $key => $social_network ) {
includes/class-sassy-social-share.php CHANGED
@@ -130,6 +130,8 @@ class Sassy_Social_Share {
130
  add_action( 'plugins_loaded', array( $plugin_admin, 'update_db_check' ) );
131
  // save GDPR notification flag in DB
132
  add_action( 'wp_ajax_heateor_sss_gdpr_notification_read', array( $plugin_admin, 'gdpr_notification_read' ) );
 
 
133
  // create admin menu
134
  add_action( 'admin_menu', array( $plugin_admin, 'create_admin_menu' ) );
135
  // set sanitization callback for plugin options
130
  add_action( 'plugins_loaded', array( $plugin_admin, 'update_db_check' ) );
131
  // save GDPR notification flag in DB
132
  add_action( 'wp_ajax_heateor_sss_gdpr_notification_read', array( $plugin_admin, 'gdpr_notification_read' ) );
133
+ // save Twitter share count notification flag in DB
134
+ add_action( 'wp_ajax_heateor_sss_twitter_share_notification_read', array( $plugin_admin, 'twitter_share_notification_read' ) );
135
  // create admin menu
136
  add_action( 'admin_menu', array( $plugin_admin, 'create_admin_menu' ) );
137
  // set sanitization callback for plugin options
languages/sassy-social-share.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2018-08-11 09:30+0530\n"
6
- "PO-Revision-Date: 2018-08-11 09:31+0530\n"
7
  "Last-Translator: Team Heateor <hello@heateor.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: en_IN\n"
@@ -64,13 +64,14 @@ msgstr ""
64
  msgid "Dismiss this notice"
65
  msgstr ""
66
 
67
- #: ../admin/class-sassy-social-share-admin.php:459
68
  msgid ""
69
  "Update \"Social Share myCRED Integration\" add-on for maximum compatibility "
70
  "with current version of Sassy Social Share"
71
  msgstr ""
72
 
73
- #: ../admin/class-sassy-social-share-admin.php:483
 
74
  #, php-format
75
  msgid ""
76
  "This plugin is GDPR compliant. You need to update the privacy policy of your "
@@ -78,19 +79,29 @@ msgid ""
78
  "\"%s\" target=\"_blank\">here</a>"
79
  msgstr ""
80
 
81
- #: ../admin/class-sassy-social-share-admin.php:483
 
 
82
  msgid "Okay"
83
  msgstr ""
84
 
85
- #: ../admin/class-sassy-social-share-admin.php:499
 
 
 
 
 
 
 
 
86
  msgid "Add-Ons"
87
  msgstr ""
88
 
89
- #: ../admin/class-sassy-social-share-admin.php:500
90
  msgid "Support Documentation"
91
  msgstr ""
92
 
93
- #: ../admin/class-sassy-social-share-admin.php:501
94
  msgid "Settings"
95
  msgstr ""
96
 
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2018-08-21 18:06+0530\n"
6
+ "PO-Revision-Date: 2018-08-21 18:06+0530\n"
7
  "Last-Translator: Team Heateor <hello@heateor.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: en_IN\n"
64
  msgid "Dismiss this notice"
65
  msgstr ""
66
 
67
+ #: ../admin/class-sassy-social-share-admin.php:471
68
  msgid ""
69
  "Update \"Social Share myCRED Integration\" add-on for maximum compatibility "
70
  "with current version of Sassy Social Share"
71
  msgstr ""
72
 
73
+ #: ../admin/class-sassy-social-share-admin.php:495
74
+ #: ../admin/class-sassy-social-share-admin.php:545
75
  #, php-format
76
  msgid ""
77
  "This plugin is GDPR compliant. You need to update the privacy policy of your "
79
  "\"%s\" target=\"_blank\">here</a>"
80
  msgstr ""
81
 
82
+ #: ../admin/class-sassy-social-share-admin.php:495
83
+ #: ../admin/class-sassy-social-share-admin.php:521
84
+ #: ../admin/class-sassy-social-share-admin.php:545
85
  msgid "Okay"
86
  msgstr ""
87
 
88
+ #: ../admin/class-sassy-social-share-admin.php:521
89
+ #, php-format
90
+ msgid ""
91
+ "Twitter share counts are no longer working as newsharecounts.com is down. To "
92
+ "continue showing the Twitter shares, just sign up <a href=\"%s\" target="
93
+ "\"_blank\">here</a> with this domain. No other steps needed."
94
+ msgstr ""
95
+
96
+ #: ../admin/class-sassy-social-share-admin.php:561
97
  msgid "Add-Ons"
98
  msgstr ""
99
 
100
+ #: ../admin/class-sassy-social-share-admin.php:562
101
  msgid "Support Documentation"
102
  msgstr ""
103
 
104
+ #: ../admin/class-sassy-social-share-admin.php:563
105
  msgid "Settings"
106
  msgstr ""
107
 
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.9.8
7
- Stable tag: 3.2.4
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
@@ -17,6 +17,8 @@ This is the Simplest and Smoothest Social Sharing plugin with optimized and grea
17
 
18
  **Note:** Plugin will not work on local server. You should have an online website for the plugin to function properly.
19
 
 
 
20
  = Feature list =
21
  * GDPR Compliant
22
  * Around **100 Social Sharing/Bookmarking** services
@@ -120,6 +122,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
120
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
121
 
122
  == Changelog ==
 
 
 
123
  = 3.2.4 =
124
  * [New] StumbleUpon share is now Mix share
125
  * [Bugfix] Enabling the horizontal sticky floating share bar was causing a white bar to appear at the bottom of webpages in mobile devices where floating bar was not enabled
@@ -558,4 +563,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
558
  * [Bugfix] Enabling the horizontal sticky floating share bar was causing a white bar to appear at the bottom of webpages in mobile devices where floating bar was not enabled
559
  * [Bugfix] "heateor-sss-no-counts" attribute was causing "disallowed attribute" validation error on AMP
560
  * [Improvement] Meta options for individual posts/pages were also appearing for non-admin users
561
- * [Improvement] "global $post" was generating PHP notices where $post was NULL
 
 
 
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.9.8
7
+ Stable tag: 3.2.5
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
17
 
18
  **Note:** Plugin will not work on local server. You should have an online website for the plugin to function properly.
19
 
20
+ **This plugin does not save any cookie in the browser of the user visiting the website having this plugin installed**
21
+
22
  = Feature list =
23
  * GDPR Compliant
24
  * Around **100 Social Sharing/Bookmarking** services
122
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
123
 
124
  == Changelog ==
125
+ = 3.2.5 =
126
+ * [Bugfix] Twitter share counts disappeared as newsharecounts.com went dead
127
+
128
  = 3.2.4 =
129
  * [New] StumbleUpon share is now Mix share
130
  * [Bugfix] Enabling the horizontal sticky floating share bar was causing a white bar to appear at the bottom of webpages in mobile devices where floating bar was not enabled
563
  * [Bugfix] Enabling the horizontal sticky floating share bar was causing a white bar to appear at the bottom of webpages in mobile devices where floating bar was not enabled
564
  * [Bugfix] "heateor-sss-no-counts" attribute was causing "disallowed attribute" validation error on AMP
565
  * [Improvement] Meta options for individual posts/pages were also appearing for non-admin users
566
+ * [Improvement] "global $post" was generating PHP notices where $post was NULL
567
+
568
+ = 3.2.5 =
569
+ * [Bugfix] Twitter share counts disappeared as newsharecounts.com went dead
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.2.4
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.2.4' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object
@@ -127,7 +127,7 @@ function heateor_sss_save_default_options() {
127
  'twitter_username' => '',
128
  'buffer_username' => '',
129
  'custom_css' => '',
130
- 'tweet_count_service' => 'newsharecounts',
131
  'amp_enable' => '1'
132
  ) );
133
 
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.2.5
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.2.5' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object
127
  'twitter_username' => '',
128
  'buffer_username' => '',
129
  'custom_css' => '',
130
+ 'tweet_count_service' => 'opensharecount',
131
  'amp_enable' => '1'
132
  ) );
133