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

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.3.1
Comparing to
See all releases

Code changes from version 9.3.0 to 9.3.1

lib/social-share-counts/share_count.php CHANGED
@@ -70,7 +70,7 @@ abstract class ShareaholicShareCount {
70
  'callback' => 'tumblr_count_callback',
71
  ),
72
  'odnoklassniki' => array(
73
- 'url' => 'https://connect.ok.ru/dk?st.cmd=extLike&uid=odklcnt0&ref=%s',
74
  'method' => 'GET',
75
  'timeout' => 1000,
76
  'callback' => 'odnoklassniki_count_callback',
@@ -259,11 +259,8 @@ abstract class ShareaholicShareCount {
259
  if ( $this->has_http_error( $response ) ) {
260
  return false;
261
  }
262
-
263
- // Similar to vk, extract the 2nd param from the response: 'ODKL.updateCount('odklcnt0','14198');'
264
- $matches = array();
265
- preg_match( '/^ODKL\.updateCount\(\'odklcnt0\',\'(\d+)\'\);$/i', $response['body'], $matches );
266
- return isset( $matches[1] ) ? intval( $matches[1] ) : 0;
267
  }
268
 
269
  /**
70
  'callback' => 'tumblr_count_callback',
71
  ),
72
  'odnoklassniki' => array(
73
+ 'url' => 'https://connect.ok.ru/dk?st.cmd=extLike&tp=json&ref=%s',
74
  'method' => 'GET',
75
  'timeout' => 1000,
76
  'callback' => 'odnoklassniki_count_callback',
259
  if ( $this->has_http_error( $response ) ) {
260
  return false;
261
  }
262
+ $body = json_decode( $response['body'], true );
263
+ return isset( $body['count'] ) ? intval( $body['count'] ) : 0;
 
 
 
264
  }
265
 
266
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, social sharing, google analytics, pinterest, twitter, share butto
4
  Requires at least: 3.7
5
  Tested up to: 5.4
6
  Requires PHP: 5.3
7
- Stable tag: 9.3.0
8
 
9
 
10
  Boost Audience Engagement with Award Winning Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
@@ -309,6 +309,9 @@ The default Shareaholic thumbnail width is 640px with dynamic height and no crop
309
  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.
310
 
311
  == Changelog ==
 
 
 
312
  = 9.3.0 (2020-05-18) =
313
  * New: Display optional feedback form on plugin deactivation
314
  * Code style standards improvements to match WordPress official spec
@@ -1044,7 +1047,7 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
1044
  * Show Related Posts data status
1045
 
1046
  == Upgrade Notice ==
1047
- = 9.3.0 =
1048
  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!
1049
 
1050
  = 8.12.1 =
4
  Requires at least: 3.7
5
  Tested up to: 5.4
6
  Requires PHP: 5.3
7
+ Stable tag: 9.3.1
8
 
9
 
10
  Boost Audience Engagement with Award Winning Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
309
  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.
310
 
311
  == Changelog ==
312
+ = 9.3.1 (2020-06-10) =
313
+ * Enhancement: Update Odnoklassniki (ok.ru) endpoints
314
+
315
  = 9.3.0 (2020-05-18) =
316
  * New: Display optional feedback form on plugin deactivation
317
  * Code style standards improvements to match WordPress official spec
1047
  * Show Related Posts data status
1048
 
1049
  == Upgrade Notice ==
1050
+ = 9.3.1 =
1051
  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!
1052
 
1053
  = 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.3.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.3.0
18
  */
19
 
20
  /**
@@ -71,7 +71,7 @@ if ( ! class_exists( 'Shareaholic' ) ) {
71
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
72
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
73
 
74
- const VERSION = '9.3.0';
75
 
76
  /**
77
  * 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.3.1
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.3.1
18
  */
19
 
20
  /**
71
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
72
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
73
 
74
+ const VERSION = '9.3.1';
75
 
76
  /**
77
  * Starts off as false so that ::get_instance() returns