Social Share WordPress Plugin – AccessPress Social Share - Version 2.0.9

Version Description

  • changed the facebook count url for the facebook share count as pervious share count url is returning total of share and likes as shares count.
  • Demo url link change.
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.0.9

Files changed (2) hide show
  1. accesspress-social-share.php +7 -4
  2. readme.txt +6 -2
accesspress-social-share.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: 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: 2.0.8
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
@@ -30,7 +30,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
30
  }
31
 
32
  if( !defined( 'APSS_VERSION' ) ) {
33
- define( 'APSS_VERSION', '2.0.8' );
34
  }
35
 
36
  if( !defined('APSS_TEXT_DOMAIN')){
@@ -324,9 +324,12 @@ if( !class_exists( 'APSS_Class' ) ){
324
  //for setting the counter transient in separate options value
325
  $apss_social_counts_transients = get_option( APSS_COUNT_TRANSIENTS );
326
  if (false === $fb_transient_count) {
327
- $json_string = $this->get_json_values( 'https://graph.facebook.com/?id=' . $url );
 
 
 
328
  $json = json_decode( $json_string, true );
329
- $facebook_count = isset($json['shares']) ? intval( $json['shares'] ) : 0;
330
  set_transient($fb_transient, $facebook_count, $cache_period * HOUR_IN_SECONDS );
331
  if( !in_array( $fb_transient, $apss_social_counts_transients) ){
332
  $apss_social_counts_transients[] = $fb_transient;
4
  Plugin name: 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: 2.0.9
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
30
  }
31
 
32
  if( !defined( 'APSS_VERSION' ) ) {
33
+ define( 'APSS_VERSION', '2.0.9' );
34
  }
35
 
36
  if( !defined('APSS_TEXT_DOMAIN')){
324
  //for setting the counter transient in separate options value
325
  $apss_social_counts_transients = get_option( APSS_COUNT_TRANSIENTS );
326
  if (false === $fb_transient_count) {
327
+ // $json_string = $this->get_json_values( 'https://graph.facebook.com/?id=' . $url );
328
+ // $json = json_decode( $json_string, true );
329
+ // $facebook_count = isset($json['shares']) ? intval( $json['shares'] ) : 0;
330
+ $json_string = $this->get_json_values( 'https://api.facebook.com/method/links.getStats?urls=' . $url.'&format=json' );
331
  $json = json_decode( $json_string, true );
332
+ $facebook_count = isset( $json[0]['share_count'] ) ? intval( $json[0]['share_count'] ) : 0;
333
  set_transient($fb_transient, $facebook_count, $cache_period * HOUR_IN_SECONDS );
334
  if( !in_array( $fb_transient, $apss_social_counts_transients) ){
335
  $apss_social_counts_transients[] = $fb_transient;
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.2
7
- Stable tag: 2.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -94,7 +94,7 @@ For complete information and documentation regarding plugin, please visit below
94
 
95
  [Docs](https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-social-share/ )
96
 
97
- [Demo](http://accesspressthemes.com/demo/wordpress-plugins/accesspress-social-share/)
98
 
99
  == Installation ==
100
  1. Unzip accesspress-social-share.zip
@@ -131,6 +131,10 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
 
 
 
 
134
  = 2.0.8 =
135
  * Added more shortcode attributes - counter display option, share text option. Please see how to use section.
136
  * Added 1 more theme.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 2.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
94
 
95
  [Docs](https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-social-share/ )
96
 
97
+ [Demo](http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-share/)
98
 
99
  == Installation ==
100
  1. Unzip accesspress-social-share.zip
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
134
+ = 2.0.9 =
135
+ * changed the facebook count url for the facebook share count as pervious share count url is returning total of share and likes as shares count.
136
+ * Demo url link change.
137
+
138
  = 2.0.8 =
139
  * Added more shortcode attributes - counter display option, share text option. Please see how to use section.
140
  * Added 1 more theme.