Version Description
- Fixed the facebook share count issue.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 4.1.7 |
Comparing to | |
See all releases |
Code changes from version 4.1.6 to 4.1.7
- accesspress-social-share.php +6 -6
- 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.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.1.
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
@@ -415,9 +415,9 @@ if ( !class_exists( 'APSS_Class' ) ) {
|
|
415 |
//for setting the counter transient in separate options value
|
416 |
$apss_social_counts_transients = get_option( APSS_COUNT_TRANSIENTS );
|
417 |
if ( false === $fb_transient_count ) {
|
418 |
-
$json_string = $this->get_json_values( 'https://
|
419 |
$json = json_decode( $json_string, true );
|
420 |
-
$facebook_count = isset( $json[
|
421 |
set_transient( $fb_transient, $facebook_count, $cache_period * HOUR_IN_SECONDS );
|
422 |
if ( !in_array( $fb_transient, $apss_social_counts_transients ) ) {
|
423 |
$apss_social_counts_transients[] = $fb_transient;
|
@@ -428,9 +428,9 @@ if ( !class_exists( 'APSS_Class' ) ) {
|
|
428 |
}
|
429 |
////////////////////////for transient ends ///////////////////////////
|
430 |
}else{
|
431 |
-
$json_string = $this->get_json_values( 'https://
|
432 |
$json = json_decode( $json_string, true );
|
433 |
-
$facebook_count = isset( $json[
|
434 |
}
|
435 |
return $facebook_count;
|
436 |
}
|
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.1.7
|
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.1.7' );
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
415 |
//for setting the counter transient in separate options value
|
416 |
$apss_social_counts_transients = get_option( APSS_COUNT_TRANSIENTS );
|
417 |
if ( false === $fb_transient_count ) {
|
418 |
+
$json_string = $this->get_json_values( 'https://graph.facebook.com/?id=' . $url );
|
419 |
$json = json_decode( $json_string, true );
|
420 |
+
$facebook_count = isset( $json['share']['share_count'] ) ? intval( $json['share']['share_count'] ) : 0;
|
421 |
set_transient( $fb_transient, $facebook_count, $cache_period * HOUR_IN_SECONDS );
|
422 |
if ( !in_array( $fb_transient, $apss_social_counts_transients ) ) {
|
423 |
$apss_social_counts_transients[] = $fb_transient;
|
428 |
}
|
429 |
////////////////////////for transient ends ///////////////////////////
|
430 |
}else{
|
431 |
+
$json_string = $this->get_json_values( 'https://graph.facebook.com/?id=' . $url );
|
432 |
$json = json_decode( $json_string, true );
|
433 |
+
$facebook_count = isset( $json['share']['share_count'] ) ? intval( $json['share']['share_count'] ) : 0;
|
434 |
}
|
435 |
return $facebook_count;
|
436 |
}
|
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.6
|
7 |
-
Stable tag: 4.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -133,6 +133,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
|
|
133 |
6. Backend Miscellaneous Settings Section
|
134 |
|
135 |
== Changelog ==
|
|
|
|
|
|
|
136 |
= 4.1.6 =
|
137 |
* Fixed the twitter multiple popup issue.
|
138 |
* Removed the dublicate css for the share text css from the frontend css.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 4.1.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
133 |
6. Backend Miscellaneous Settings Section
|
134 |
|
135 |
== Changelog ==
|
136 |
+
= 4.1.7 =
|
137 |
+
* Fixed the facebook share count issue.
|
138 |
+
|
139 |
= 4.1.6 =
|
140 |
* Fixed the twitter multiple popup issue.
|
141 |
* Removed the dublicate css for the share text css from the frontend css.
|