Version Description
- Done small bug fixing for the frontend css issue for the anchor links.
- Done the bug fixing for the cache issue of the facebook share counts.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 4.3.0 |
Comparing to | |
See all releases |
Code changes from version 4.2.9 to 4.3.0
- accesspress-social-share.php +6 -6
- css/frontend.css +9 -5
- inc/frontend/content-filter.php +0 -1
- readme.txt +10 -2
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.
|
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.
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
@@ -468,7 +468,7 @@ if ( !class_exists( 'APSS_Class' ) ) {
|
|
468 |
if(isset($apss_settings['api_configuration']['facebook']['app_secret']) && $apss_settings['api_configuration']['facebook']['app_secret'] !='' ){
|
469 |
$fb_app_secret = $apss_settings['api_configuration']['facebook']['app_id'];
|
470 |
}
|
471 |
-
|
472 |
if(!isset($fb_app_id) || !isset($fb_app_secret)){
|
473 |
$facebook_count = self:: get_fb($url);
|
474 |
return $facebook_count;
|
@@ -483,7 +483,7 @@ if ( !class_exists( 'APSS_Class' ) ) {
|
|
483 |
);
|
484 |
|
485 |
$apss_settings = $this->apss_settings;
|
486 |
-
if(
|
487 |
////////////////////////for transient//////////////////////////////
|
488 |
$cache_period = $apss_settings['cache_period'];
|
489 |
$fb_transient = 'fb_' . md5( $url );
|
@@ -510,7 +510,7 @@ if ( !class_exists( 'APSS_Class' ) ) {
|
|
510 |
$facebook_count = isset( $json['share']['share_count'] ) ? intval( $json['share']['share_count'] ) : 0;
|
511 |
}
|
512 |
return $facebook_count;
|
513 |
-
|
514 |
}
|
515 |
|
516 |
|
@@ -729,7 +729,7 @@ if ( !class_exists( 'APSS_Class' ) ) {
|
|
729 |
|
730 |
public static function get_http_url( $url ) {
|
731 |
return preg_replace( '/https:/i', 'http:', $url );
|
732 |
-
}
|
733 |
}
|
734 |
|
735 |
//APSS_Class termination
|
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.0
|
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.0' );
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
468 |
if(isset($apss_settings['api_configuration']['facebook']['app_secret']) && $apss_settings['api_configuration']['facebook']['app_secret'] !='' ){
|
469 |
$fb_app_secret = $apss_settings['api_configuration']['facebook']['app_id'];
|
470 |
}
|
471 |
+
|
472 |
if(!isset($fb_app_id) || !isset($fb_app_secret)){
|
473 |
$facebook_count = self:: get_fb($url);
|
474 |
return $facebook_count;
|
483 |
);
|
484 |
|
485 |
$apss_settings = $this->apss_settings;
|
486 |
+
if(isset($apss_settings['enable_cache']) && $apss_settings['enable_cache'] == '1'){
|
487 |
////////////////////////for transient//////////////////////////////
|
488 |
$cache_period = $apss_settings['cache_period'];
|
489 |
$fb_transient = 'fb_' . md5( $url );
|
510 |
$facebook_count = isset( $json['share']['share_count'] ) ? intval( $json['share']['share_count'] ) : 0;
|
511 |
}
|
512 |
return $facebook_count;
|
513 |
+
die();
|
514 |
}
|
515 |
|
516 |
|
729 |
|
730 |
public static function get_http_url( $url ) {
|
731 |
return preg_replace( '/https:/i', 'http:', $url );
|
732 |
+
}
|
733 |
}
|
734 |
|
735 |
//APSS_Class termination
|
css/frontend.css
CHANGED
@@ -37,17 +37,21 @@
|
|
37 |
text-decoration: none;
|
38 |
}
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
43 |
vertical-align: top;
|
44 |
margin-top: 4px;
|
45 |
}
|
46 |
|
47 |
-
|
48 |
font-size: 28px;
|
49 |
display: inline-block;
|
50 |
-
vertical-align: top;
|
|
|
51 |
|
52 |
.apss-total-shares{ display: inline-block;
|
53 |
font-size: 13px;
|
37 |
text-decoration: none;
|
38 |
}
|
39 |
|
40 |
+
.apss-social-share a {
|
41 |
+
text-decoration:none;
|
42 |
+
}
|
43 |
+
|
44 |
+
.apss-total-share-count{
|
45 |
+
display: inline-block;
|
46 |
vertical-align: top;
|
47 |
margin-top: 4px;
|
48 |
}
|
49 |
|
50 |
+
.apss-count-number{
|
51 |
font-size: 28px;
|
52 |
display: inline-block;
|
53 |
+
vertical-align: top;
|
54 |
+
}
|
55 |
|
56 |
.apss-total-shares{ display: inline-block;
|
57 |
font-size: 13px;
|
inc/frontend/content-filter.php
CHANGED
@@ -69,7 +69,6 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
69 |
}else{
|
70 |
$flag=FALSE;
|
71 |
}
|
72 |
-
|
73 |
if($flag == TRUE){
|
74 |
$url1 = APSS_Class:: get_http_url($url);
|
75 |
$count += APSS_Class:: get_count($key, $url1);
|
69 |
}else{
|
70 |
$flag=FALSE;
|
71 |
}
|
|
|
72 |
if($flag == TRUE){
|
73 |
$url1 = APSS_Class:: get_http_url($url);
|
74 |
$count += APSS_Class:: get_count($key, $url1);
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -29,7 +29,11 @@ it button for each images. Please upgrade to Premium version.`
|
|
29 |
|
30 |
`Have you moved your site from HTTP to HTTPS and lost your share counts?
|
31 |
No worries! Now you can get your http site's share counts back using our
|
32 |
-
plugin
|
|
|
|
|
|
|
|
|
33 |
|
34 |
= Free Features: =
|
35 |
|
@@ -141,6 +145,10 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
|
|
141 |
6. Backend Miscellaneous Settings Section
|
142 |
|
143 |
== Changelog ==
|
|
|
|
|
|
|
|
|
144 |
= 4.2.9 =
|
145 |
* Addition of do_action hooks to make users add more social networks if they need it. You can use add_action using these tags for 'apss_more_networks' in content and 'apss_more_networks_in_shortcodes' for shortcode.
|
146 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 4.3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
29 |
|
30 |
`Have you moved your site from HTTP to HTTPS and lost your share counts?
|
31 |
No worries! Now you can get your http site's share counts back using our
|
32 |
+
plugin.
|
33 |
+
<strong>Note: If you have set 301 redirects in your site the facebook share
|
34 |
+
counts may reset</strong>
|
35 |
+
`
|
36 |
+
|
37 |
|
38 |
= Free Features: =
|
39 |
|
145 |
6. Backend Miscellaneous Settings Section
|
146 |
|
147 |
== Changelog ==
|
148 |
+
= 4.3.0 =
|
149 |
+
* Done small bug fixing for the frontend css issue for the anchor links.
|
150 |
+
* Done the bug fixing for the cache issue of the facebook share counts.
|
151 |
+
|
152 |
= 4.2.9 =
|
153 |
* Addition of do_action hooks to make users add more social networks if they need it. You can use add_action using these tags for 'apss_more_networks' in content and 'apss_more_networks_in_shortcodes' for shortcode.
|
154 |
|