Version Description
- Done the bug fixings for the double addition of the counter for canonical URLs.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 4.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.3.0 to 4.3.1
- accesspress-social-share.php +2 -2
- inc/backend/main-page.php +2 -2
- inc/frontend/content-filter.php +36 -6
- inc/frontend/shortcode.php +39 -9
- 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.
|
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.
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
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 |
}
|
31 |
|
32 |
if ( !defined( 'APSS_VERSION' ) ) {
|
33 |
+
define( 'APSS_VERSION', '4.3.1' );
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
inc/backend/main-page.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<div class="apss-social-bttns">
|
10 |
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width&layout=button&action=like&show_faces=false&share=false&height=35&appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowtransparency="true"></iframe>
|
11 |
|
12 |
-
<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="
|
13 |
<script>!function (d, s, id) {
|
14 |
var js, fjs = d.getElementsByTagName(s)[0];
|
15 |
if (!d.getElementById(id)) {
|
@@ -242,7 +242,7 @@
|
|
242 |
</div>
|
243 |
<br />
|
244 |
<div class="apss_notes_cache_settings">
|
245 |
-
<?php _e(
|
246 |
</div>
|
247 |
</div>
|
248 |
<br />
|
9 |
<div class="apss-social-bttns">
|
10 |
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width&layout=button&action=like&show_faces=false&share=false&height=35&appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowtransparency="true"></iframe>
|
11 |
|
12 |
+
<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="//platform.twitter.com/widgets/follow_button.5f46501ecfda1c3e1c05dd3e24875611.en.html#_=1421918256492&dnt=true&id=twitter-widget-0&lang=en&screen_name=apthemes&show_count=false&show_screen_name=true&size=m" class="twitter-follow-button twitter-follow-button" title="Twitter Follow Button" data-twttr-rendered="true" style="width: 126px; height: 20px;"></iframe>
|
13 |
<script>!function (d, s, id) {
|
14 |
var js, fjs = d.getElementsByTagName(s)[0];
|
15 |
if (!d.getElementById(id)) {
|
242 |
</div>
|
243 |
<br />
|
244 |
<div class="apss_notes_cache_settings">
|
245 |
+
<?php _e( "<b>Note:</b> Please select this option if you have moved your site from HTTP to HTTPS. For Facebook and Google+, The crawler still needs to be able to access the old page, so exempt the crawler's user agent from the redirect and only send an HTTP redirect to non-Facebook crawler clients. If you have done 301 redirect then the old url share counts will be lost.", 'accesspress-social-share' ); ?>
|
246 |
</div>
|
247 |
</div>
|
248 |
<br />
|
inc/frontend/content-filter.php
CHANGED
@@ -51,7 +51,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
51 |
|
52 |
if($flag == TRUE){
|
53 |
$url1 = APSS_Class:: get_http_url($url);
|
54 |
-
$
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
}
|
57 |
///////////////////////////////////////////
|
@@ -71,7 +76,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
71 |
}
|
72 |
if($flag == TRUE){
|
73 |
$url1 = APSS_Class:: get_http_url($url);
|
74 |
-
$
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
}
|
77 |
///////////////////////////////////////////
|
@@ -112,7 +122,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
112 |
|
113 |
if($flag == TRUE){
|
114 |
$url1 = APSS_Class:: get_http_url($url);
|
115 |
-
$
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
}
|
118 |
///////////////////////////////////////////
|
@@ -146,7 +161,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
146 |
|
147 |
if($flag == TRUE){
|
148 |
$url1 = APSS_Class:: get_http_url($url);
|
149 |
-
$
|
|
|
|
|
|
|
|
|
|
|
150 |
}
|
151 |
}
|
152 |
///////////////////////////////////////////
|
@@ -180,7 +200,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
180 |
|
181 |
if($flag == TRUE){
|
182 |
$url1 = APSS_Class:: get_http_url($url);
|
183 |
-
$
|
|
|
|
|
|
|
|
|
|
|
184 |
}
|
185 |
}
|
186 |
///////////////////////////////////////////
|
@@ -217,7 +242,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
217 |
|
218 |
if($flag == TRUE){
|
219 |
$url1 = APSS_Class:: get_http_url($url);
|
220 |
-
$
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
}
|
223 |
///////////////////////////////////////////
|
51 |
|
52 |
if($flag == TRUE){
|
53 |
$url1 = APSS_Class:: get_http_url($url);
|
54 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
55 |
+
if($count != $http_count){
|
56 |
+
$count += $http_count;
|
57 |
+
}else{
|
58 |
+
$count = $count;
|
59 |
+
}
|
60 |
}
|
61 |
}
|
62 |
///////////////////////////////////////////
|
76 |
}
|
77 |
if($flag == TRUE){
|
78 |
$url1 = APSS_Class:: get_http_url($url);
|
79 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
80 |
+
if($count != $http_count){
|
81 |
+
$count += $http_count;
|
82 |
+
}else{
|
83 |
+
$count = $count;
|
84 |
+
}
|
85 |
}
|
86 |
}
|
87 |
///////////////////////////////////////////
|
122 |
|
123 |
if($flag == TRUE){
|
124 |
$url1 = APSS_Class:: get_http_url($url);
|
125 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
126 |
+
if($count != $http_count){
|
127 |
+
$count += $http_count;
|
128 |
+
}else{
|
129 |
+
$count = $count;
|
130 |
+
}
|
131 |
}
|
132 |
}
|
133 |
///////////////////////////////////////////
|
161 |
|
162 |
if($flag == TRUE){
|
163 |
$url1 = APSS_Class:: get_http_url($url);
|
164 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
165 |
+
if($count != $http_count){
|
166 |
+
$count += $http_count;
|
167 |
+
}else{
|
168 |
+
$count = $count;
|
169 |
+
}
|
170 |
}
|
171 |
}
|
172 |
///////////////////////////////////////////
|
200 |
|
201 |
if($flag == TRUE){
|
202 |
$url1 = APSS_Class:: get_http_url($url);
|
203 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
204 |
+
if($count != $http_count){
|
205 |
+
$count += $http_count;
|
206 |
+
}else{
|
207 |
+
$count = $count;
|
208 |
+
}
|
209 |
}
|
210 |
}
|
211 |
///////////////////////////////////////////
|
242 |
|
243 |
if($flag == TRUE){
|
244 |
$url1 = APSS_Class:: get_http_url($url);
|
245 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
246 |
+
if($count != $http_count){
|
247 |
+
$count += $http_count;
|
248 |
+
}else{
|
249 |
+
$count = $count;
|
250 |
+
}
|
251 |
}
|
252 |
}
|
253 |
///////////////////////////////////////////
|
inc/frontend/shortcode.php
CHANGED
@@ -71,7 +71,7 @@ if ( isset( $attr['counter'] ) ) {
|
|
71 |
if ( intval( $value ) == '1' ) {
|
72 |
$count = $this->get_count( $key, $url );
|
73 |
|
74 |
-
|
75 |
if(isset($http_url_checked) && $http_url_checked=='1'){
|
76 |
$url_check = parse_url($url);
|
77 |
if($url_check['scheme'] == 'https'){
|
@@ -82,7 +82,12 @@ if ( isset( $attr['counter'] ) ) {
|
|
82 |
|
83 |
if($flag == TRUE){
|
84 |
$url1 = APSS_Class:: get_http_url($url);
|
85 |
-
$
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
}
|
88 |
///////////////////////////////////////////
|
@@ -105,7 +110,12 @@ if ( isset( $attr['counter'] ) ) {
|
|
105 |
|
106 |
if($flag == TRUE){
|
107 |
$url1 = APSS_Class:: get_http_url($url);
|
108 |
-
$
|
|
|
|
|
|
|
|
|
|
|
109 |
}
|
110 |
}
|
111 |
///////////////////////////////////////////
|
@@ -148,7 +158,12 @@ if ( isset( $attr['counter'] ) ) {
|
|
148 |
|
149 |
if($flag == TRUE){
|
150 |
$url1 = APSS_Class:: get_http_url($url);
|
151 |
-
$
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
153 |
}
|
154 |
///////////////////////////////////////////
|
@@ -178,12 +193,17 @@ if ( isset( $attr['counter'] ) ) {
|
|
178 |
if($url_check['scheme'] == 'https'){
|
179 |
$flag=TRUE;
|
180 |
}else{
|
181 |
-
$flag=FALSE;
|
182 |
}
|
183 |
|
184 |
if($flag == TRUE){
|
185 |
$url1 = APSS_Class:: get_http_url($url);
|
186 |
-
$
|
|
|
|
|
|
|
|
|
|
|
187 |
}
|
188 |
}
|
189 |
///////////////////////////////////////////
|
@@ -215,12 +235,17 @@ if ( isset( $attr['counter'] ) ) {
|
|
215 |
if($url_check['scheme'] == 'https'){
|
216 |
$flag=TRUE;
|
217 |
}else{
|
218 |
-
$flag=FALSE;
|
219 |
}
|
220 |
|
221 |
if($flag == TRUE){
|
222 |
$url1 = APSS_Class:: get_http_url($url);
|
223 |
-
$
|
|
|
|
|
|
|
|
|
|
|
224 |
}
|
225 |
}
|
226 |
///////////////////////////////////////////
|
@@ -257,7 +282,12 @@ if ( isset( $attr['counter'] ) ) {
|
|
257 |
|
258 |
if($flag == TRUE){
|
259 |
$url1 = APSS_Class:: get_http_url($url);
|
260 |
-
$
|
|
|
|
|
|
|
|
|
|
|
261 |
}
|
262 |
}
|
263 |
///////////////////////////////////////////
|
71 |
if ( intval( $value ) == '1' ) {
|
72 |
$count = $this->get_count( $key, $url );
|
73 |
|
74 |
+
///////////////////////////////////////////
|
75 |
if(isset($http_url_checked) && $http_url_checked=='1'){
|
76 |
$url_check = parse_url($url);
|
77 |
if($url_check['scheme'] == 'https'){
|
82 |
|
83 |
if($flag == TRUE){
|
84 |
$url1 = APSS_Class:: get_http_url($url);
|
85 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
86 |
+
if($count != $http_count){
|
87 |
+
$count += $http_count;
|
88 |
+
}else{
|
89 |
+
$count = $count;
|
90 |
+
}
|
91 |
}
|
92 |
}
|
93 |
///////////////////////////////////////////
|
110 |
|
111 |
if($flag == TRUE){
|
112 |
$url1 = APSS_Class:: get_http_url($url);
|
113 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
114 |
+
if($count != $http_count){
|
115 |
+
$count += $http_count;
|
116 |
+
}else{
|
117 |
+
$count = $count;
|
118 |
+
}
|
119 |
}
|
120 |
}
|
121 |
///////////////////////////////////////////
|
158 |
|
159 |
if($flag == TRUE){
|
160 |
$url1 = APSS_Class:: get_http_url($url);
|
161 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
162 |
+
if($count != $http_count){
|
163 |
+
$count += $http_count;
|
164 |
+
}else{
|
165 |
+
$count = $count;
|
166 |
+
}
|
167 |
}
|
168 |
}
|
169 |
///////////////////////////////////////////
|
193 |
if($url_check['scheme'] == 'https'){
|
194 |
$flag=TRUE;
|
195 |
}else{
|
196 |
+
$flag=FALSE;
|
197 |
}
|
198 |
|
199 |
if($flag == TRUE){
|
200 |
$url1 = APSS_Class:: get_http_url($url);
|
201 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
202 |
+
if($count != $http_count){
|
203 |
+
$count += $http_count;
|
204 |
+
}else{
|
205 |
+
$count = $count;
|
206 |
+
}
|
207 |
}
|
208 |
}
|
209 |
///////////////////////////////////////////
|
235 |
if($url_check['scheme'] == 'https'){
|
236 |
$flag=TRUE;
|
237 |
}else{
|
238 |
+
$flag=FALSE;
|
239 |
}
|
240 |
|
241 |
if($flag == TRUE){
|
242 |
$url1 = APSS_Class:: get_http_url($url);
|
243 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
244 |
+
if($count != $http_count){
|
245 |
+
$count += $http_count;
|
246 |
+
}else{
|
247 |
+
$count = $count;
|
248 |
+
}
|
249 |
}
|
250 |
}
|
251 |
///////////////////////////////////////////
|
282 |
|
283 |
if($flag == TRUE){
|
284 |
$url1 = APSS_Class:: get_http_url($url);
|
285 |
+
$http_count = APSS_Class:: get_count($key, $url1);
|
286 |
+
if($count != $http_count){
|
287 |
+
$count += $http_count;
|
288 |
+
}else{
|
289 |
+
$count = $count;
|
290 |
+
}
|
291 |
}
|
292 |
}
|
293 |
///////////////////////////////////////////
|
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.
|
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.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.
|
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. 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 |
+
|
151 |
= 4.3.0 =
|
152 |
* Done small bug fixing for the frontend css issue for the anchor links.
|
153 |
* Done the bug fixing for the cache issue of the facebook share counts.
|