WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 9.6.0

Version Description

We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thanks for using Shareaholic!

Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 9.6.0
Comparing to
See all releases

Code changes from version 9.5.0 to 9.6.0

public.php CHANGED
@@ -351,7 +351,9 @@ class ShareaholicPublic {
351
  }
352
  if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $post->ID ) ) {
353
  $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
354
- $thumbnail_src = esc_attr( $thumbnail[0] );
 
 
355
  }
356
  if ( $thumbnail_src == null ) {
357
  $thumbnail_src = ShareaholicUtilities::post_first_image();
351
  }
352
  if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $post->ID ) ) {
353
  $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
354
+ if ( is_array( $thumbnail ) ) {
355
+ $thumbnail_src = esc_attr( $thumbnail[0] );
356
+ }
357
  }
358
  if ( $thumbnail_src == null ) {
359
  $thumbnail_src = ShareaholicUtilities::post_first_image();
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Social Sharing Buttons, Related Posts, Google Analytics - Shareaholic ===
2
  Contributors: shareaholic
3
- Tags: social, social sharing, google analytics, pinterest, twitter, share buttons, content, woocommerce, typepad, amazon, analytics, arto, baidu, bitly, blogger, buffer, cookie compliance, cookie consent, delicious, digg, diigo, disqus, email button, evernote, facebook, facebook sharing, fancy, fark, feedly, flipboard, floated share buttons, floating share buttons, follow buttons, GDPR, gmail, google bookmarks, google classroom, hootsuite, houzz, instagram, instagram sharing, instapaper, kik, kindle, line, linkedin, livejournal, meneame, mix, mixi, TikTok, odnoklassniki, box.net, onenote, pinboard.in, pinterest, pinterest sharing, plurk, pocket, printfriendly, recommendations, reddit, sexybookmarks, share buttons, share image, shareaholic, shareholic, sms, social bookmarking, social media, social plugin, social share buttons, spotify, stumbleupon, stumpedia, symphony, tinyurl, tumblr, twitter, viadeo, vk, wanelo, wechat, weheartit, weibo, whatsapp, wykop, xing, yahoo, yammer, ycombinator, hacker news, youtube, yummly, zillow
4
  Requires at least: 3.7
5
- Tested up to: 5.5
6
  Requires PHP: 5.3
7
- Stable tag: 9.5.0
8
 
9
  Boost Audience Engagement with Award Winning Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
10
 
@@ -35,7 +35,7 @@ Make it easy for your visitors to share social content with their friends with S
35
 
36
  * Official Share Counters and Share Buttons for Facebook, Pinterest, and more
37
  * [Official integration](https://support.shareaholic.com/hc/en-us/articles/205181045-) with Google Analytics
38
- * Full support for: Facebook share sharing, Twitter sharing, Pinterest sharing, Instagram sharing, Google Plus sharing, Reddit sharing, LinkedIn sharing, Gmail sharing, Delicious sharing, OneNote sharing, Evernote sharing, Stumbleupon sharing, Digg sharing, Tumblr sharing, Hootsuite sharing, Buffer sharing, Fancy sharing, Wanelo sharing, Yummly sharing, WeHeartIt sharing, Flipboard sharing, Printfriendly sharing, Amazon Wishlist sharing, Instapaper sharing, Pocket sharing, Odnoklassniki sharing, Houzz sharing, Hacker News sharing, Inbound.org sharing, Vk sharing, etc
39
  * Supports theme features such as HTML5 & XHTML, widgets, plugins, infinite scroll, post formats, and mobile optimization
40
  * Supported URL Shorteners: Bitly (including custom tracking), J.mp, TinyURL, Shr.lc
41
  * Vector share buttons & follow buttons (SVG icons)
@@ -175,7 +175,7 @@ The Shareaholic Plugin Admin UI itself is currently localized in the following l
175
 
176
  * Social Follow Buttons: Facebook follow buttons, Twitter follow buttons, Instagram follow buttons, YouTube follow buttons, LinkedIn, Spotify, Google+, Pinterest follow buttons, Etsy, BuzzFeed, iTunes, Tumblr, Vimeo, eBay, 500px, about.me, Meetup, Patreon, Medium, Snapchat, Slack, Baidu, Behance, Better Business Bureau (BBB), Bloglovin, Disqus, Dribbble, Feedly, Flickr, Foursquare, Github, Google Classroom, Houzz, LinkedIn, LiveJournal, Odnoklassniki (OK), Polyvore, RSS, Skype, SlideShare, Strava, SoundCloud, Stack Overflow, StumbleUpon, Tripadvisor, Vine, VK, Yelp, Zillow
177
 
178
- * Social Share Buttons: Facebook share buttons, LinkedIn share buttons, Pinterest share buttons, Reddit share buttons, Skype share buttons, SMS share button, StumbleUpon share buttons, Tumblr share buttons, Twitter share buttons, Telegram, Mix, WhatsApp share buttons, Amazon Kindle share buttons, Amazon share buttons, Amazon Wish List, AOL Mail, Arto, Baidu, Bit.ly, Blogger Post, Box, Buffer, Delicious, Digg, Diigo, Diigolet, Email This, Evernote, Facebook Send, Fancy, Fark, Flipboard share buttons, GMail share buttons, Google Bookmarks, Google Classroom, Google Mail, Google+, HootSuite share buttons, Houzz share buttons, Inbound.org, Instapaper, Kik, Line share buttons, LinkedIn share buttons, Mail, Meneame, Microsoft OneNote, Mister-Wong, Mixi, MSDN, Odnoklassniki (OK), Outlook, Pinboard.in, Pinterest, Plurk, Pocket share buttons, Print share buttons, PrintFriendly share buttons, Read Later share buttons, Reddit share buttons, Sina Weibo, Skype share buttons, SMS, Soup.io, Stumpedia, Symphony, Techmeme, TinyURL, TypePad Post, Viadeo, Vkontakte (VK), Wanelo, We Heart It, WhatsApp,Windows Live Favorites, WordPress share buttons, Wykop, Xing, Yahoo Bookmarks, Yahoo Messenger, Yahoo! Mail, Yammer, YC Hacker News, Yummly share buttons, Viber, Trello, Facebook Messenger
179
 
180
  == Screenshots ==
181
 
@@ -308,10 +308,18 @@ The default Shareaholic thumbnail width is 640px with dynamic height and no crop
308
  Each time you change Shareaholic's thumbnail dimensions like this, you will probably want to have WordPress regenerate appropriate sized thumbnails for all of your images. We highly recommend the [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugin for this purpose.
309
 
310
  == Changelog ==
311
- = 9.5.0 (19-October-2020) =
312
- * *Are you missing your Facebook Share Counts?* Facebook recently decided to drop support for unauthenticated Share Count lookups. No need to worry. Shareaholic offers two options to get back your Facebook Share Counts:
 
 
 
 
 
 
313
  * [Self-hosted (free option)](https://support.shareaholic.com/hc/en-us/articles/202809466-WordPress-Plugin-Share-Count-Proxy-API-Local-)
314
  * [Hosted by Shareaholic (premium option)](https://support.shareaholic.com/hc/en-us/articles/360029500132-Share-Count-Proxy-API-Hosted-) - We recommend this option as self hosting Share Counts yourself can be a resource hog. A dedicated service to keep Shareaholic light on site resources is your simplest and fastest option. Our servers do all the heavy lifting such as storage, rate limiting, caching, and more behind the scenes work while keeping your website fast. An added advantage of the premium version are higher API lookup limits.
 
 
315
  * New Follow Buttons
316
  * TikTok
317
  * Email
@@ -1071,7 +1079,7 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
1071
  * Show Related Posts data status
1072
 
1073
  == Upgrade Notice ==
1074
- = 9.5.0 =
1075
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thanks for using Shareaholic!
1076
 
1077
  = 8.12.1 =
1
+ === WordPress Social Sharing, Related Posts & Analytics - Shareaholic ===
2
  Contributors: shareaholic
3
+ Tags: social, social sharing, google analytics, pinterest, twitter, share buttons, content, woocommerce, typepad, amazon, analytics, arto, baidu, bitly, blogger, buffer, cookie compliance, cookie consent, delicious, digg, diigo, disqus, email button, evernote, facebook, facebook sharing, fancy, fark, feedly, flipboard, floated share buttons, floating share buttons, follow buttons, GDPR, gmail, google bookmarks, google classroom, hootsuite, houzz, instagram, instagram sharing, instapaper, kik, kindle, line, linkedin, livejournal, meneame, mix, mixi, TikTok, odnoklassniki, box.net, onenote, pinboard.in, pinterest, pinterest sharing, parler, plurk, pocket, printfriendly, recommendations, reddit, sexybookmarks, share buttons, share image, shareaholic, shareholic, sms, social bookmarking, social media, social plugin, social share buttons, spotify, stumbleupon, stumpedia, symphony, tinyurl, tumblr, twitter, viadeo, vk, wanelo, wechat, weheartit, weibo, whatsapp, wykop, xing, yahoo, yammer, ycombinator, hacker news, youtube, yummly, zillow
4
  Requires at least: 3.7
5
+ Tested up to: 5.6
6
  Requires PHP: 5.3
7
+ Stable tag: 9.6.0
8
 
9
  Boost Audience Engagement with Award Winning Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
10
 
35
 
36
  * Official Share Counters and Share Buttons for Facebook, Pinterest, and more
37
  * [Official integration](https://support.shareaholic.com/hc/en-us/articles/205181045-) with Google Analytics
38
+ * Full support for: WhatsApp, Facebook share sharing, Twitter sharing, Pinterest sharing, Instagram sharing, Google Plus sharing, Reddit sharing, LinkedIn sharing, Gmail sharing, Delicious sharing, OneNote sharing, Evernote sharing, Stumbleupon sharing, Digg sharing, Tumblr sharing, Hootsuite sharing, Buffer sharing, Fancy sharing, Wanelo sharing, Yummly sharing, WeHeartIt sharing, Flipboard sharing, Printfriendly sharing, Amazon Wishlist sharing, Instapaper sharing, Pocket sharing, Odnoklassniki sharing, Houzz sharing, Hacker News sharing, Inbound.org sharing, Vk sharing, etc
39
  * Supports theme features such as HTML5 & XHTML, widgets, plugins, infinite scroll, post formats, and mobile optimization
40
  * Supported URL Shorteners: Bitly (including custom tracking), J.mp, TinyURL, Shr.lc
41
  * Vector share buttons & follow buttons (SVG icons)
175
 
176
  * Social Follow Buttons: Facebook follow buttons, Twitter follow buttons, Instagram follow buttons, YouTube follow buttons, LinkedIn, Spotify, Google+, Pinterest follow buttons, Etsy, BuzzFeed, iTunes, Tumblr, Vimeo, eBay, 500px, about.me, Meetup, Patreon, Medium, Snapchat, Slack, Baidu, Behance, Better Business Bureau (BBB), Bloglovin, Disqus, Dribbble, Feedly, Flickr, Foursquare, Github, Google Classroom, Houzz, LinkedIn, LiveJournal, Odnoklassniki (OK), Polyvore, RSS, Skype, SlideShare, Strava, SoundCloud, Stack Overflow, StumbleUpon, Tripadvisor, Vine, VK, Yelp, Zillow
177
 
178
+ * Social Share Buttons: [Facebook](https://www.shareaholic.com/website-tools/social-share-buttons/facebook), [LinkedIn](https://www.shareaholic.com/website-tools/social-share-buttons/linkedin), [Pinterest](https://www.shareaholic.com/website-tools/social-share-buttons/pinterest), [Reddit](https://www.shareaholic.com/website-tools/social-share-buttons/reddit), Skype share buttons, SMS share button, StumbleUpon share buttons, Tumblr, Twitter, Telegram, Mix, Amazon Kindle share buttons, Amazon share buttons, Amazon Wish List, AOL Mail, Arto, Baidu, Bit.ly, Blogger Post, Box, Buffer, Delicious, Digg, Diigo, Diigolet, Email This, Evernote, Facebook Send, Fancy, Fark, Flipboard share buttons, GMail share buttons, Google Bookmarks, Google Classroom, Google Mail, HootSuite share buttons, Houzz share buttons, Inbound.org, Instapaper, Kik, Line share buttons, LinkedIn share buttons, Mail, Meneame, Microsoft OneNote, Mixi, MSDN, Odnoklassniki (OK), Outlook, Parler, Pinboard.in, Pinterest, Plurk, Pocket share buttons, Print share buttons, PrintFriendly share buttons, Read Later share buttons, Reddit share buttons, Sina Weibo, Skype share buttons, SMS, Soup.io, Stumpedia, Symphony, Techmeme, TinyURL, TypePad Post, Viadeo, Vkontakte (VK), Wanelo, We Heart It, WhatsApp, Windows Live Favorites, WordPress share buttons, Wykop, Xing, Yahoo! Mail, Yammer, YC Hacker News, Yummly, Viber, Trello, Facebook Messenger
179
 
180
  == Screenshots ==
181
 
308
  Each time you change Shareaholic's thumbnail dimensions like this, you will probably want to have WordPress regenerate appropriate sized thumbnails for all of your images. We highly recommend the [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugin for this purpose.
309
 
310
  == Changelog ==
311
+ = 9.6.0 (30-December-2020) =
312
+ * [Enhancement](https://wordpress.org/support/topic/google-analytics-cookies/): Google Analytics tracker is now only set if you have [Google Analytics Social Interaction tracking](https://support.shareaholic.com/hc/en-us/articles/205181045-Official-Google-Analytics-Integration-for-Share-Buttons) enabled in your Shareaholic Share Button settings. This means less code on page and speed boost for those that do not use Google Analytics.
313
+ * Enhancement: Mobile improvements for Share Buttons for Images. They now appear on touch, in addition to tap = more shares.
314
+ * Enhancement: Given its popularity, Share To WhatsApp is now recommended by default for new installs.
315
+ * Bugfix: Fixes whitespace added by code indentation when entering Facebook App credentials
316
+ * Bugfix: Account for when `wp_get_attachment_image_src` returns false if no image is available
317
+
318
+ **Are you missing your Facebook Share Counts?** *Facebook recently decided to drop support for unauthenticated Share Count lookups. No need to worry. Shareaholic offers two options to get back your Facebook Share Counts:*
319
  * [Self-hosted (free option)](https://support.shareaholic.com/hc/en-us/articles/202809466-WordPress-Plugin-Share-Count-Proxy-API-Local-)
320
  * [Hosted by Shareaholic (premium option)](https://support.shareaholic.com/hc/en-us/articles/360029500132-Share-Count-Proxy-API-Hosted-) - We recommend this option as self hosting Share Counts yourself can be a resource hog. A dedicated service to keep Shareaholic light on site resources is your simplest and fastest option. Our servers do all the heavy lifting such as storage, rate limiting, caching, and more behind the scenes work while keeping your website fast. An added advantage of the premium version are higher API lookup limits.
321
+
322
+ = 9.5.0 (19-October-2020) =
323
  * New Follow Buttons
324
  * TikTok
325
  * Email
1079
  * Show Related Posts data status
1080
 
1081
  == Upgrade Notice ==
1082
+ = 9.6.0 =
1083
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thanks for using Shareaholic!
1084
 
1085
  = 8.12.1 =
shareaholic.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Shareaholic - Grow and Engage Your Audience
4
  Plugin URI: https://www.shareaholic.com/website-tools/
5
  Description: Shareaholic’s official WordPress plugin allows you to add Award-Winning Social Share Buttons, Related Posts, Content Analytics, Ad Monetization, and more to your website.
6
- Version: 9.5.0
7
  Author: Shareaholic
8
  Author URI: https://www.shareaholic.com
9
  Text Domain: shareaholic
@@ -14,7 +14,7 @@ Domain Path: /languages
14
  * The main file!
15
  *
16
  * @package shareaholic
17
- * @version 9.5.0
18
  */
19
 
20
  /**
@@ -67,7 +67,7 @@ if ( ! class_exists( 'Shareaholic' ) ) {
67
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
68
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
69
 
70
- const VERSION = '9.5.0';
71
 
72
  /**
73
  * Starts off as false so that ::get_instance() returns
3
  Plugin Name: Shareaholic - Grow and Engage Your Audience
4
  Plugin URI: https://www.shareaholic.com/website-tools/
5
  Description: Shareaholic’s official WordPress plugin allows you to add Award-Winning Social Share Buttons, Related Posts, Content Analytics, Ad Monetization, and more to your website.
6
+ Version: 9.6.0
7
  Author: Shareaholic
8
  Author URI: https://www.shareaholic.com
9
  Text Domain: shareaholic
14
  * The main file!
15
  *
16
  * @package shareaholic
17
+ * @version 9.6.0
18
  */
19
 
20
  /**
67
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
68
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
69
 
70
+ const VERSION = '9.6.0';
71
 
72
  /**
73
  * Starts off as false so that ::get_instance() returns
six_to_seven.php CHANGED
@@ -361,7 +361,7 @@ class ShareaholicSixToSeven {
361
  */
362
  private static function transform_classicbookmarks_locations( $classicbookmarks_configuration, $share_buttons_configuration ) {
363
  $result = array(
364
- 'services' => array( 'facebook', 'twitter', 'email_this', 'pinterest', 'tumblr', 'google_plus', 'linkedin' ),
365
  );
366
 
367
  if ( $classicbookmarks_configuration['size'] == '16' ) {
361
  */
362
  private static function transform_classicbookmarks_locations( $classicbookmarks_configuration, $share_buttons_configuration ) {
363
  $result = array(
364
+ 'services' => array( 'facebook', 'twitter', 'email_this', 'pinterest', 'whatsapp', 'linkedin' ),
365
  );
366
 
367
  if ( $classicbookmarks_configuration['size'] == '16' ) {
templates/advanced_settings.php CHANGED
@@ -137,21 +137,25 @@ window.ShareaholicConfig = {
137
 
138
  <div class="shr-form-item shr-form-text">
139
  <label for="facebook_app_id"><?php _e( 'Facebook App ID', 'shareaholic' ); ?></label><br>
140
- <input class="regular-text" id="facebook_app_id" type="text" name='shareaholic[facebook_app_id]' value="
141
  <?php
142
  if ( isset( $settings['facebook_app_id'] ) ) {
143
- echo $settings['facebook_app_id'];}
 
 
 
144
  ?>
145
- ">
146
  </div>
147
  <div class="shr-form-item shr-form-text">
148
  <label for="facebook_app_secret"><?php _e( 'Facebook App Secret', 'shareaholic' ); ?></label><br>
149
- <input class="regular-text" id="facebook_app_secret" type="text" name='shareaholic[facebook_app_secret]' value="
150
  <?php
151
  if ( isset( $settings['facebook_app_id'] ) ) {
152
- echo $settings['facebook_app_secret'];}
 
 
 
153
  ?>
154
- ">
155
  </div>
156
 
157
  <?php echo sprintf( __( 'Required for better Facebook Share Counts. Please %1$sfollow documentation%2$s to get your Facebook App ID and Secret.', 'shareaholic' ), '<a href="https://support.shareaholic.com/hc/en-us/articles/360028605231" target="_blank">', '</a>' ); ?>
137
 
138
  <div class="shr-form-item shr-form-text">
139
  <label for="facebook_app_id"><?php _e( 'Facebook App ID', 'shareaholic' ); ?></label><br>
 
140
  <?php
141
  if ( isset( $settings['facebook_app_id'] ) ) {
142
+ $facebook_app_id = trim( $settings['facebook_app_id'] );
143
+ } else {
144
+ $facebook_app_id = '';
145
+ }
146
  ?>
147
+ <input class="regular-text" id="facebook_app_id" type="text" name='shareaholic[facebook_app_id]' value="<?php echo $facebook_app_id; ?>">
148
  </div>
149
  <div class="shr-form-item shr-form-text">
150
  <label for="facebook_app_secret"><?php _e( 'Facebook App Secret', 'shareaholic' ); ?></label><br>
 
151
  <?php
152
  if ( isset( $settings['facebook_app_id'] ) ) {
153
+ $facebook_app_secret = trim( $settings['facebook_app_secret'] );
154
+ } else {
155
+ $facebook_app_secret = '';
156
+ }
157
  ?>
158
+ <input class="regular-text" id="facebook_app_secret" type="text" name='shareaholic[facebook_app_secret]' value="<?php echo $facebook_app_secret; ?>">
159
  </div>
160
 
161
  <?php echo sprintf( __( 'Required for better Facebook Share Counts. Please %1$sfollow documentation%2$s to get your Facebook App ID and Secret.', 'shareaholic' ), '<a href="https://support.shareaholic.com/hc/en-us/articles/360028605231" target="_blank">', '</a>' ); ?>
templates/failed_to_create_api_key.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php if ( current_user_can( 'manage_options' ) ) { ?>
2
  <div class="shareaholic-wrap-container" style="padding: 0 20px 0px 15px; background-color: #45a147; margin: 25px 0px 20px -18px;">
3
- <div style="margin: 0px 8px 0 4px; float: left;"><img src="<?php echo plugins_url('/assets/img/check.png', SHAREAHOLIC_FILE) ?>" width=56 height=50 /></div>
4
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.4); font-size: 14px; display: table-cell;">
5
  <p>
6
  <strong><?php echo sprintf( __( 'Action required: You\'ve installed Shareaholic for WordPress. We\'re ready when you are. %1$sGet started now &raquo;%2$s', 'shareaholic' ), '<a href="admin.php?page=shareaholic-settings" class="button-secondary">', '</a>' ); ?></strong>
1
  <?php if ( current_user_can( 'manage_options' ) ) { ?>
2
  <div class="shareaholic-wrap-container" style="padding: 0 20px 0px 15px; background-color: #45a147; margin: 25px 0px 20px -18px;">
3
+ <div style="margin: 0px 8px 0 4px; float: left;"><img src="<?php echo plugins_url( '/assets/img/check.png', SHAREAHOLIC_FILE ); ?>" width=56 height=50 /></div>
4
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.4); font-size: 14px; display: table-cell;">
5
  <p>
6
  <strong><?php echo sprintf( __( 'Action required: You\'ve installed Shareaholic for WordPress. We\'re ready when you are. %1$sGet started now &raquo;%2$s', 'shareaholic' ), '<a href="admin.php?page=shareaholic-settings" class="button-secondary">', '</a>' ); ?></strong>
templates/terms_of_service_notice.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php if ( current_user_can( 'manage_options' ) ) { ?>
2
  <div class="shareaholic-wrap-container" style="background-color: #009688; margin: 5px 0px 5px -20px;">
3
  <div style="margin: 0px 15px 0 20px; float: left;">
4
- <img src="<?php echo plugins_url('/assets/img/check.png', SHAREAHOLIC_FILE) ?>" width="56" height="50" />
5
  </div>
6
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.2); font-size: 14px; line-height: 1.5em; height: 50px; vertical-align: middle; display: table-cell; line-height: 1.5;">
7
  <?php echo sprintf( __( 'You\'ve added Shareaholic - Welcome! Action required: %1$sComplete Installation &raquo;%2$s', 'shareaholic' ), '<a href="admin.php?page=shareaholic-settings" class="button-secondary" style="vertical-align: initial;">', '</a>' ); ?>
1
  <?php if ( current_user_can( 'manage_options' ) ) { ?>
2
  <div class="shareaholic-wrap-container" style="background-color: #009688; margin: 5px 0px 5px -20px;">
3
  <div style="margin: 0px 15px 0 20px; float: left;">
4
+ <img src="<?php echo plugins_url( '/assets/img/check.png', SHAREAHOLIC_FILE ); ?>" width="56" height="50" />
5
  </div>
6
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.2); font-size: 14px; line-height: 1.5em; height: 50px; vertical-align: middle; display: table-cell; line-height: 1.5;">
7
  <?php echo sprintf( __( 'You\'ve added Shareaholic - Welcome! Action required: %1$sComplete Installation &raquo;%2$s', 'shareaholic' ), '<a href="admin.php?page=shareaholic-settings" class="button-secondary" style="vertical-align: initial;">', '</a>' ); ?>
utilities.php CHANGED
@@ -1387,18 +1387,21 @@ class ShareaholicUtilities {
1387
  return false;
1388
  } else {
1389
  if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $post->ID ) ) {
 
1390
  $thumbnail_shareaholic = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'shareaholic-thumbnail' );
1391
- $thumbnail_full = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
1392
-
1393
- if ( ( $size == 'shareaholic-thumbnail' ) && ( $thumbnail_shareaholic[0] !== $thumbnail_full[0] ) ) {
1394
  $featured_img = esc_attr( $thumbnail_shareaholic[0] );
1395
  } else {
1396
  if ( $size == 'shareaholic-thumbnail' ) {
1397
- $thumbnail_large = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
1398
  } else {
1399
  $thumbnail_large = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size );
1400
  }
1401
- $featured_img = esc_attr( $thumbnail_large[0] );
 
 
1402
  }
1403
  } else {
1404
  return false;
@@ -1407,7 +1410,6 @@ class ShareaholicUtilities {
1407
  return $featured_img;
1408
  }
1409
 
1410
-
1411
  /**
1412
  * Return Facebook Access Token
1413
  */
1387
  return false;
1388
  } else {
1389
  if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $post->ID ) ) {
1390
+ // note: wp_get_attachment_image_src returns either an array or NULL
1391
  $thumbnail_shareaholic = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'shareaholic-thumbnail' );
1392
+ $thumbnail_full = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); // Original image resolution (unmodified)
1393
+
1394
+ if ( ( $size == 'shareaholic-thumbnail' ) && (! empty( $thumbnail_shareaholic[0]) && ! empty( $thumbnail_full[0])) && ( $thumbnail_shareaholic[0] !== $thumbnail_full[0] ) ) {
1395
  $featured_img = esc_attr( $thumbnail_shareaholic[0] );
1396
  } else {
1397
  if ( $size == 'shareaholic-thumbnail' ) {
1398
+ $thumbnail_large = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' ); // Large resolution (default 1024px x 1024px max)
1399
  } else {
1400
  $thumbnail_large = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size );
1401
  }
1402
+ if ( is_array( $thumbnail_large ) ) {
1403
+ $featured_img = esc_attr( $thumbnail_large[0] );
1404
+ }
1405
  }
1406
  } else {
1407
  return false;
1410
  return $featured_img;
1411
  }
1412
 
 
1413
  /**
1414
  * Return Facebook Access Token
1415
  */