Version Description
- Bugfix: Fixed edge case where admin assets were not being linked properly
- Bugfix: Fixed menu timeout issue
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.4.0.7 |
Comparing to | |
See all releases |
Code changes from version 7.4.0.6 to 7.4.0.7
- admin.php +3 -2
- readme.txt +11 -3
- shareaholic.php +3 -3
- templates/script_tag.php +1 -1
- templates/why_to_sign_up.php +19 -13
- utilities.php +23 -6
admin.php
CHANGED
@@ -174,17 +174,18 @@ class ShareaholicAdmin {
|
|
174 |
*/
|
175 |
public static function enqueue_scripts() {
|
176 |
if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
|
177 |
-
wp_enqueue_style('shareaholic_application_css', ShareaholicUtilities::
|
178 |
wp_enqueue_style('shareaholic_bootstrap_css', plugins_url('assets/css/bootstrap.css', __FILE__), false, ShareaholicUtilities::get_version());
|
179 |
wp_enqueue_style('shareaholic_main_css', plugins_url('assets/css/main.css', __FILE__), false, ShareaholicUtilities::get_version());
|
180 |
wp_enqueue_style('shareaholic_open_sans_css', '//fonts.googleapis.com/css?family=Open+Sans:400,300,700');
|
181 |
|
182 |
-
wp_enqueue_script('shareholic_utilities_js', ShareaholicUtilities::
|
183 |
wp_enqueue_script('shareholic_bootstrap_js', plugins_url('assets/js/bootstrap.min.js', __FILE__), false, ShareaholicUtilities::get_version());
|
184 |
wp_enqueue_script('shareholic_jquery_custom_js', plugins_url('assets/js/jquery_custom.js', __FILE__), false, ShareaholicUtilities::get_version());
|
185 |
wp_enqueue_script('shareholic_jquery_ui_custom_js', plugins_url('assets/js/jquery_ui_custom.js', __FILE__), array('shareholic_jquery_custom_js'), ShareaholicUtilities::get_version());
|
186 |
wp_enqueue_script('shareholic_modified_reveal_js', plugins_url('assets/js/jquery.reveal.modified.js', __FILE__), array('shareholic_jquery_custom_js', 'shareholic_jquery_ui_custom_js'), ShareaholicUtilities::get_version());
|
187 |
wp_enqueue_script('shareholic_main_js', plugins_url('assets/js/main.js', __FILE__), false, ShareaholicUtilities::get_version());
|
|
|
188 |
}
|
189 |
}
|
190 |
|
174 |
*/
|
175 |
public static function enqueue_scripts() {
|
176 |
if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
|
177 |
+
wp_enqueue_style('shareaholic_application_css', ShareaholicUtilities::asset_url_admin('assets/application.css'), false, ShareaholicUtilities::get_version());
|
178 |
wp_enqueue_style('shareaholic_bootstrap_css', plugins_url('assets/css/bootstrap.css', __FILE__), false, ShareaholicUtilities::get_version());
|
179 |
wp_enqueue_style('shareaholic_main_css', plugins_url('assets/css/main.css', __FILE__), false, ShareaholicUtilities::get_version());
|
180 |
wp_enqueue_style('shareaholic_open_sans_css', '//fonts.googleapis.com/css?family=Open+Sans:400,300,700');
|
181 |
|
182 |
+
wp_enqueue_script('shareholic_utilities_js', ShareaholicUtilities::asset_url_admin('assets/pub/utilities.js'), false, ShareaholicUtilities::get_version());
|
183 |
wp_enqueue_script('shareholic_bootstrap_js', plugins_url('assets/js/bootstrap.min.js', __FILE__), false, ShareaholicUtilities::get_version());
|
184 |
wp_enqueue_script('shareholic_jquery_custom_js', plugins_url('assets/js/jquery_custom.js', __FILE__), false, ShareaholicUtilities::get_version());
|
185 |
wp_enqueue_script('shareholic_jquery_ui_custom_js', plugins_url('assets/js/jquery_ui_custom.js', __FILE__), array('shareholic_jquery_custom_js'), ShareaholicUtilities::get_version());
|
186 |
wp_enqueue_script('shareholic_modified_reveal_js', plugins_url('assets/js/jquery.reveal.modified.js', __FILE__), array('shareholic_jquery_custom_js', 'shareholic_jquery_ui_custom_js'), ShareaholicUtilities::get_version());
|
187 |
wp_enqueue_script('shareholic_main_js', plugins_url('assets/js/main.js', __FILE__), false, ShareaholicUtilities::get_version());
|
188 |
+
wp_enqueue_script('shareholic_admin_js', ShareaholicUtilities::asset_url_admin('media/js/platforms/wordpress/wordpress-admin.js'), false, ShareaholicUtilities::get_version(), true);
|
189 |
}
|
190 |
}
|
191 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
|
|
3 |
Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.9.1
|
6 |
-
Stable tag: 7.4.0.
|
7 |
|
8 |
Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
|
9 |
|
@@ -155,6 +155,10 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
155 |
|
156 |
== Changelog ==
|
157 |
|
|
|
|
|
|
|
|
|
158 |
= 7.4.0.6 =
|
159 |
* Tested on WordPress 3.9.1
|
160 |
* Bugfix: Fixed annoying bug where Facebook was trying to cache scheduled posts before they were live
|
@@ -162,9 +166,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
162 |
* Shareaholic now resets the Facebook Open Graph cache (title, description and image) for you automatically when a post is published, so the right stuff gets shared, every time.
|
163 |
* [Share Counts + Floating Share Buttons](https://blog.shareaholic.com/floating-share-buttons-and-social-share-counts/)!
|
164 |
* New icons for Viadeo, HootSuite, Wanelo
|
165 |
-
* [Related Content](https://shareaholic.com/publishers/recommendations/)
|
166 |
* Greatly improved reliability
|
167 |
-
|
168 |
= 7.4.0.5 =
|
169 |
* Added cache cleanup support for WP Super Cache, Hyper Cache and Quick Cache plugin's
|
170 |
|
@@ -1067,6 +1071,10 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
1067 |
|
1068 |
== Upgrade Notice ==
|
1069 |
|
|
|
|
|
|
|
|
|
1070 |
= 7.4.0.6 =
|
1071 |
|
1072 |
Many improvements to Facebook sharing and Related Content.
|
3 |
Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.9.1
|
6 |
+
Stable tag: 7.4.0.7
|
7 |
|
8 |
Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
|
9 |
|
155 |
|
156 |
== Changelog ==
|
157 |
|
158 |
+
= 7.4.0.7 =
|
159 |
+
* Bugfix: Fixed edge case where admin assets were not being linked properly
|
160 |
+
* [Bugfix](http://wordpress.org/support/topic/save-menu-produces-404-error-or-500-error): Fixed menu timeout issue
|
161 |
+
|
162 |
= 7.4.0.6 =
|
163 |
* Tested on WordPress 3.9.1
|
164 |
* Bugfix: Fixed annoying bug where Facebook was trying to cache scheduled posts before they were live
|
166 |
* Shareaholic now resets the Facebook Open Graph cache (title, description and image) for you automatically when a post is published, so the right stuff gets shared, every time.
|
167 |
* [Share Counts + Floating Share Buttons](https://blog.shareaholic.com/floating-share-buttons-and-social-share-counts/)!
|
168 |
* New icons for Viadeo, HootSuite, Wanelo
|
169 |
+
* [Related Content](https://shareaholic.com/publishers/recommendations/) enhancements
|
170 |
* Greatly improved reliability
|
171 |
+
|
172 |
= 7.4.0.5 =
|
173 |
* Added cache cleanup support for WP Super Cache, Hyper Cache and Quick Cache plugin's
|
174 |
|
1071 |
|
1072 |
== Upgrade Notice ==
|
1073 |
|
1074 |
+
= 7.4.0.7 =
|
1075 |
+
|
1076 |
+
Bug fixes to make Shareaholic a little better for you.
|
1077 |
+
|
1078 |
= 7.4.0.6 =
|
1079 |
|
1080 |
Many improvements to Facebook sharing and Related Content.
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.4.0.
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
|
13 |
-
Version: 7.4.0.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
@@ -61,7 +61,7 @@ class Shareaholic {
|
|
61 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
62 |
const REC_API_URL = 'http://recommendations.shareaholic.com';
|
63 |
|
64 |
-
const VERSION = '7.4.0.
|
65 |
|
66 |
/**
|
67 |
* Starts off as false so that ::get_instance() returns
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.4.0.7
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
|
13 |
+
Version: 7.4.0.7
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
61 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
62 |
const REC_API_URL = 'http://recommendations.shareaholic.com';
|
63 |
|
64 |
+
const VERSION = '7.4.0.7';
|
65 |
|
66 |
/**
|
67 |
* Starts off as false so that ::get_instance() returns
|
templates/script_tag.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
(function() {
|
5 |
var shr = document.createElement('script');
|
6 |
shr.setAttribute('data-cfasync', 'false');
|
7 |
-
shr.src = '<?php echo ShareaholicUtilities::asset_url('pub/shareaholic.js') ?>';
|
8 |
shr.type = 'text/javascript'; shr.async = 'true';
|
9 |
shr.onload = shr.onreadystatechange = function() {
|
10 |
var rs = this.readyState;
|
4 |
(function() {
|
5 |
var shr = document.createElement('script');
|
6 |
shr.setAttribute('data-cfasync', 'false');
|
7 |
+
shr.src = '<?php echo ShareaholicUtilities::asset_url('assets/pub/shareaholic.js') ?>';
|
8 |
shr.type = 'text/javascript'; shr.async = 'true';
|
9 |
shr.onload = shr.onreadystatechange = function() {
|
10 |
var rs = this.readyState;
|
templates/why_to_sign_up.php
CHANGED
@@ -1,19 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<div class="help_links unit size1of5">
|
2 |
<ul>
|
3 |
-
<li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('
|
4 |
-
<li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Translation', 'shareaholic'); ?></a></li>
|
5 |
<li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Get the Shareaholic Browser Add-on', 'shareaholic'); ?></a></li>
|
6 |
</ul>
|
7 |
</div>
|
8 |
|
9 |
-
<div class="
|
10 |
-
<
|
11 |
-
<
|
12 |
-
|
13 |
-
|
14 |
-
<li><?php echo sprintf(__('Additional themes for share buttons, related content, etc to match your site.', 'shareaholic')); ?></li>
|
15 |
-
<li><?php echo sprintf(__('Opportunities to make money with your site, plus lots more!', 'shareaholic')); ?></li>
|
16 |
-
</ul>
|
17 |
-
<button data-href='edit' id='general_settings' class="btn btn-large btn-success"><?php echo sprintf(__('Edit General Website Settings', 'shareaholic')); ?></button>
|
18 |
-
<p class="signuppromo_note"><?php echo sprintf(__("Connecting is simple. Simply click the button above and sign in to your Shareaholic account to connect this plugin to your account. If you don't have an account already, simply create a new account — it takes just seconds and it's free!", 'shareaholic')); ?></p>
|
19 |
-
</div>
|
1 |
+
<div class="signuppromo unit size1of5">
|
2 |
+
<p class="promoh1"><?php echo sprintf(__('Sign up for a FREE Shareaholic account to unlock more features.', 'shareaholic')); ?></p>
|
3 |
+
<ul>
|
4 |
+
<li><?php echo sprintf(__('Brand your social shares with your @Twitterhandle', 'shareaholic')); ?></li>
|
5 |
+
<li><?php echo sprintf(__('Pick your favorite URL shortener, including support for branded bitly short links.', 'shareaholic')); ?></li>
|
6 |
+
<li><?php echo sprintf(__('Monetize your site, plus lots more!', 'shareaholic')); ?></li>
|
7 |
+
</ul>
|
8 |
+
<button data-href='edit' id='general_settings' class="btn btn-large btn-success"><?php echo sprintf(__('Edit General Website Settings', 'shareaholic')); ?></button>
|
9 |
+
|
10 |
+
<p class="signuppromo_note"><?php echo sprintf(__("Click the button above to sign up or log in to your free Shareaholic account. It takes just seconds to sign up and it's free!", 'shareaholic')); ?></p>
|
11 |
+
</div>
|
12 |
+
|
13 |
<div class="help_links unit size1of5">
|
14 |
<ul>
|
15 |
+
<li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Shareaholic Helpdesk', 'shareaholic'); ?></a></li>
|
16 |
+
<li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Language Translation', 'shareaholic'); ?></a></li>
|
17 |
<li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Get the Shareaholic Browser Add-on', 'shareaholic'); ?></a></li>
|
18 |
</ul>
|
19 |
</div>
|
20 |
|
21 |
+
<div class="help_links unit size1of5">
|
22 |
+
<div id="shrsb-updates">
|
23 |
+
<div id="shrsb-updates-container"></div>
|
24 |
+
</div>
|
25 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
utilities.php
CHANGED
@@ -357,11 +357,27 @@ class ShareaholicUtilities {
|
|
357 |
*/
|
358 |
public static function asset_url($asset) {
|
359 |
if (preg_match('/spreadaholic/', Shareaholic::URL)) {
|
360 |
-
return "http://spreadaholic.com:8080/
|
361 |
} elseif (preg_match('/stageaholic/', Shareaholic::URL)) {
|
362 |
-
return '//d2062rwknz205x.cloudfront.net/
|
363 |
} else {
|
364 |
-
return '//dsms0mj1bbhn4.cloudfront.net/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
}
|
366 |
}
|
367 |
|
@@ -1007,10 +1023,11 @@ class ShareaholicUtilities {
|
|
1007 |
*
|
1008 |
*/
|
1009 |
public static function post_transitioned($new_status, $old_status, $post) {
|
1010 |
-
|
|
|
1011 |
// Post was just published
|
1012 |
-
|
1013 |
-
|
1014 |
}
|
1015 |
if ($old_status == 'publish' && $new_status != 'publish') {
|
1016 |
// Notify CM that the post is no longer public
|
357 |
*/
|
358 |
public static function asset_url($asset) {
|
359 |
if (preg_match('/spreadaholic/', Shareaholic::URL)) {
|
360 |
+
return "http://spreadaholic.com:8080/" . $asset;
|
361 |
} elseif (preg_match('/stageaholic/', Shareaholic::URL)) {
|
362 |
+
return '//d2062rwknz205x.cloudfront.net/' . $asset;
|
363 |
} else {
|
364 |
+
return '//dsms0mj1bbhn4.cloudfront.net/' . $asset;
|
365 |
+
}
|
366 |
+
}
|
367 |
+
|
368 |
+
/**
|
369 |
+
* Returns the appropriate asset path for environment - admin
|
370 |
+
*
|
371 |
+
* @param string $asset
|
372 |
+
* @return string
|
373 |
+
*/
|
374 |
+
public static function asset_url_admin($asset) {
|
375 |
+
if (preg_match('/spreadaholic/', Shareaholic::URL)) {
|
376 |
+
return "http://spreadaholic.com:8080/" . $asset;
|
377 |
+
} elseif (preg_match('/stageaholic/', Shareaholic::URL)) {
|
378 |
+
return 'https://d2062rwknz205x.cloudfront.net/' . $asset;
|
379 |
+
} else {
|
380 |
+
return 'https://dsms0mj1bbhn4.cloudfront.net/' . $asset;
|
381 |
}
|
382 |
}
|
383 |
|
1023 |
*
|
1024 |
*/
|
1025 |
public static function post_transitioned($new_status, $old_status, $post) {
|
1026 |
+
$post_type = get_post_type($post);
|
1027 |
+
if ($new_status == 'publish' && $post_type != 'nav_menu_item' && $post_type != 'attachment') {
|
1028 |
// Post was just published
|
1029 |
+
ShareaholicUtilities::clear_fb_opengraph(get_permalink($post->ID));
|
1030 |
+
ShareaholicUtilities::notify_content_manager_singlepage($post);
|
1031 |
}
|
1032 |
if ($old_status == 'publish' && $new_status != 'publish') {
|
1033 |
// Notify CM that the post is no longer public
|