Version Description
- Removal of the unnecessary codes for the fetching of the share count using cache period.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- accesspress-social-share.php +4 -5
- readme.txt +4 -1
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 |
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.
|
34 |
}
|
35 |
|
36 |
if(!defined('APSS_TEXT_DOMAIN')){
|
@@ -307,6 +307,7 @@ if( !class_exists( 'APSS_Class' ) ){
|
|
307 |
$cache_period = $apss_settings['cache_period'];
|
308 |
$fb_transient = 'fb_' . md5($url);
|
309 |
$fb_transient_count = get_transient($fb_transient);
|
|
|
310 |
//for setting the counter transient in separate options value
|
311 |
$apss_social_counts_transients = get_option( APSS_COUNT_TRANSIENTS );
|
312 |
if (false === $fb_transient_count) {
|
@@ -432,9 +433,7 @@ if( !class_exists( 'APSS_Class' ) ){
|
|
432 |
|
433 |
//function to return json values from social media urls
|
434 |
private function get_json_values( $url ){
|
435 |
-
|
436 |
-
//$cache_period = $apss_settings['cache_period'];
|
437 |
-
$args = array( 'timeout' => 10 );
|
438 |
$response = wp_remote_get( $url, $args );
|
439 |
$json_response = wp_remote_retrieve_body( $response );
|
440 |
return $json_response;
|
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.2
|
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.2' );
|
34 |
}
|
35 |
|
36 |
if(!defined('APSS_TEXT_DOMAIN')){
|
307 |
$cache_period = $apss_settings['cache_period'];
|
308 |
$fb_transient = 'fb_' . md5($url);
|
309 |
$fb_transient_count = get_transient($fb_transient);
|
310 |
+
|
311 |
//for setting the counter transient in separate options value
|
312 |
$apss_social_counts_transients = get_option( APSS_COUNT_TRANSIENTS );
|
313 |
if (false === $fb_transient_count) {
|
433 |
|
434 |
//function to return json values from social media urls
|
435 |
private function get_json_values( $url ){
|
436 |
+
$args = array( 'timeout' => 10 );
|
|
|
|
|
437 |
$response = wp_remote_get( $url, $args );
|
438 |
$json_response = wp_remote_retrieve_body( $response );
|
439 |
return $json_response;
|
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 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,9 @@ 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.1 =
|
135 |
* Social share counter cache period setting bug fixing done.
|
136 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 2.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
131 |
6. Backend Miscellaneous Settings Section
|
132 |
|
133 |
== Changelog ==
|
134 |
+
= 2.0.2 =
|
135 |
+
* Removal of the unnecessary codes for the fetching of the share count using cache period.
|
136 |
+
|
137 |
= 2.0.1 =
|
138 |
* Social share counter cache period setting bug fixing done.
|
139 |
|