Version Description
Various reliablity improvements
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 8.10.1 |
Comparing to | |
See all releases |
Code changes from version 8.10.0 to 8.10.1
- public_js.php +8 -3
- readme.txt +8 -1
- shareaholic.php +3 -3
public_js.php
CHANGED
@@ -53,9 +53,14 @@ class ShareaholicPublicJS {
|
|
53 |
$category = '';
|
54 |
$cats = get_the_category($post->ID);
|
55 |
if ( $cats ) {
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );
|
61 |
|
53 |
$category = '';
|
54 |
$cats = get_the_category($post->ID);
|
55 |
if ( $cats ) {
|
56 |
+
// Sort the terms by ID and get the first category.
|
57 |
+
if (function_exists('wp_list_sort')) {
|
58 |
+
$cats = wp_list_sort( $cats, array(
|
59 |
+
'term_id' => 'ASC',
|
60 |
+
) );
|
61 |
+
} else {
|
62 |
+
usort( $cats, '_usort_terms_by_ID' );
|
63 |
+
}
|
64 |
|
65 |
$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );
|
66 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: buttons, related posts, google analytics, share buttons, social sharing,
|
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.0
|
6 |
Requires PHP: 5.2
|
7 |
-
Stable tag: 8.10.
|
8 |
|
9 |
|
10 |
Improve Audience Engagement with Award Winning Site-Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
|
@@ -260,6 +260,9 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
|
|
260 |
|
261 |
== Changelog ==
|
262 |
|
|
|
|
|
|
|
263 |
= 8.10.0 (2018-11-19) =
|
264 |
* Enhancement: Generate a new Site Profile ID in-case existing one gets deleted
|
265 |
|
@@ -835,6 +838,10 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
|
|
835 |
|
836 |
== Upgrade Notice ==
|
837 |
|
|
|
|
|
|
|
|
|
838 |
= 8.10.0 =
|
839 |
|
840 |
Various reliablity improvements
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.0
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 8.10.1
|
8 |
|
9 |
|
10 |
Improve Audience Engagement with Award Winning Site-Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
|
260 |
|
261 |
== Changelog ==
|
262 |
|
263 |
+
= 8.10.1 (2018-11-19) =
|
264 |
+
* Bugfix: Fixed `Call to undefined function wp_list_sort()` (thank you Jorge García de Opazo for debugging help)
|
265 |
+
|
266 |
= 8.10.0 (2018-11-19) =
|
267 |
* Enhancement: Generate a new Site Profile ID in-case existing one gets deleted
|
268 |
|
838 |
|
839 |
== Upgrade Notice ==
|
840 |
|
841 |
+
= 8.10.1 =
|
842 |
+
|
843 |
+
Various reliablity improvements
|
844 |
+
|
845 |
= 8.10.0 =
|
846 |
|
847 |
Various reliablity improvements
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 8.10.
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic - Share Buttons, Analytics, Related Posts
|
11 |
Plugin URI: https://www.shareaholic.com/website-tools/
|
12 |
Description: The best WordPress all-in-one Social Media and Related Posts solution. Get found on social and grow your following. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for settings.
|
13 |
-
Version: 8.10.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://www.shareaholic.com
|
16 |
Text Domain: shareaholic
|
@@ -61,7 +61,7 @@ if (!class_exists('Shareaholic')) {
|
|
61 |
const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
62 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
63 |
|
64 |
-
const VERSION = '8.10.
|
65 |
|
66 |
/**
|
67 |
* Starts off as false so that ::get_instance() returns
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 8.10.1
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic - Share Buttons, Analytics, Related Posts
|
11 |
Plugin URI: https://www.shareaholic.com/website-tools/
|
12 |
Description: The best WordPress all-in-one Social Media and Related Posts solution. Get found on social and grow your following. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for settings.
|
13 |
+
Version: 8.10.1
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://www.shareaholic.com
|
16 |
Text Domain: shareaholic
|
61 |
const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
62 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
63 |
|
64 |
+
const VERSION = '8.10.1';
|
65 |
|
66 |
/**
|
67 |
* Starts off as false so that ::get_instance() returns
|