Social Share WordPress Plugin – AccessPress Social Share - Version 4.3.2

Version Description

  • Done the bug fixings for the facebook share counts using access token.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Share WordPress Plugin – AccessPress Social Share
Version 4.3.2
Comparing to
See all releases

Code changes from version 4.3.1 to 4.3.2

Files changed (2) hide show
  1. accesspress-social-share.php +7 -7
  2. readme.txt +4 -1
accesspress-social-share.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: Social Share WordPress Plugin - AccessPress Social Share
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
6
  Description: A plugin to add various social media shares to a site with dynamic configuration options.
7
- Version: 4.3.1
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain: accesspress-social-share
@@ -30,7 +30,7 @@ if ( !defined( 'APSS_LANG_DIR' ) ) {
30
  }
31
 
32
  if ( !defined( 'APSS_VERSION' ) ) {
33
- define( 'APSS_VERSION', '4.3.1' );
34
  }
35
 
36
  if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
@@ -454,7 +454,8 @@ if ( !class_exists( 'APSS_Class' ) ) {
454
  if ( is_wp_error( $access_token ) || ( isset( $access_token['response']['code'] ) && 200 != $access_token['response']['code'] ) ) {
455
  return '';
456
  } else {
457
- return sanitize_text_field( $access_token['body'] );
 
458
  }
459
  }
460
 
@@ -474,14 +475,13 @@ if ( !class_exists( 'APSS_Class' ) ) {
474
  return $facebook_count;
475
  }else{
476
  $access_token = self:: get_fb_access_token();
477
- $api_url = 'https://graph.facebook.com/v2.6/';
478
  $facebook_count = sprintf(
479
- '%s?%s&id=%s',
480
  $api_url,
481
  $access_token,
482
  $url
483
  );
484
-
485
  $apss_settings = $this->apss_settings;
486
  if(isset($apss_settings['enable_cache']) && $apss_settings['enable_cache'] == '1'){
487
  ////////////////////////for transient//////////////////////////////
@@ -736,4 +736,4 @@ if ( !class_exists( 'APSS_Class' ) ) {
736
 
737
  $GLOBALS['apss_object'] = new APSS_Class();
738
 
739
- }
4
  Plugin name: Social Share WordPress Plugin - AccessPress Social Share
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
6
  Description: A plugin to add various social media shares to a site with dynamic configuration options.
7
+ Version: 4.3.2
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain: accesspress-social-share
30
  }
31
 
32
  if ( !defined( 'APSS_VERSION' ) ) {
33
+ define( 'APSS_VERSION', '4.3.2' );
34
  }
35
 
36
  if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
454
  if ( is_wp_error( $access_token ) || ( isset( $access_token['response']['code'] ) && 200 != $access_token['response']['code'] ) ) {
455
  return '';
456
  } else {
457
+ $json_decode = json_decode($access_token['body']);
458
+ return sanitize_text_field( $json_decode->access_token );
459
  }
460
  }
461
 
475
  return $facebook_count;
476
  }else{
477
  $access_token = self:: get_fb_access_token();
478
+ $api_url = 'https://graph.facebook.com/';
479
  $facebook_count = sprintf(
480
+ '%s?access_token=%s&id=%s',
481
  $api_url,
482
  $access_token,
483
  $url
484
  );
 
485
  $apss_settings = $this->apss_settings;
486
  if(isset($apss_settings['enable_cache']) && $apss_settings['enable_cache'] == '1'){
487
  ////////////////////////for transient//////////////////////////////
736
 
737
  $GLOBALS['apss_object'] = new APSS_Class();
738
 
739
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social share counter, social share, social media share, social network sha
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.7
7
- Stable tag: 4.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -145,6 +145,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
145
  6. Backend Miscellaneous Settings Section
146
 
147
  == Changelog ==
 
 
 
148
  = 4.3.1 =
149
  * Done the bug fixings for the double addition of the counter for canonical URLs.
150
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.7
7
+ Stable tag: 4.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
145
  6. Backend Miscellaneous Settings Section
146
 
147
  == Changelog ==
148
+ = 4.3.2 =
149
+ * Done the bug fixings for the facebook share counts using access token.
150
+
151
  = 4.3.1 =
152
  * Done the bug fixings for the double addition of the counter for canonical URLs.
153