Version Description
- Bug fix related to Facebook Count
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.8.6 |
Comparing to | |
See all releases |
Code changes from version 1.8.5 to 1.8.6
- accesspress-social-counter.php +12 -6
- readme.txt +5 -2
accesspress-social-counter.php
CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
6 |
* Plugin Name: AccessPress Social Counter
|
7 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
8 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
9 |
-
* Version: 1.8.
|
10 |
* Author: AccessPress Themes
|
11 |
* Author URI: http://accesspressthemes.com
|
12 |
* Text Domain: aps-counter
|
@@ -29,7 +29,7 @@ if ( ! defined( 'SC_CSS_DIR' ) ) {
|
|
29 |
}
|
30 |
|
31 |
if ( ! defined( 'SC_VERSION' ) ) {
|
32 |
-
define( 'SC_VERSION', '1.8.
|
33 |
}
|
34 |
|
35 |
if ( ! defined( 'SC_PATH' ) ) {
|
@@ -344,10 +344,16 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
344 |
$fqlURL = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode( $fql );
|
345 |
|
346 |
$response = wp_remote_get( $fqlURL );
|
347 |
-
|
348 |
-
if (
|
349 |
-
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
$count = '0';
|
352 |
return $count;
|
353 |
}
|
6 |
* Plugin Name: AccessPress Social Counter
|
7 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
8 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
9 |
+
* Version: 1.8.6
|
10 |
* Author: AccessPress Themes
|
11 |
* Author URI: http://accesspressthemes.com
|
12 |
* Text Domain: aps-counter
|
29 |
}
|
30 |
|
31 |
if ( ! defined( 'SC_VERSION' ) ) {
|
32 |
+
define( 'SC_VERSION', '1.8.6' );
|
33 |
}
|
34 |
|
35 |
if ( ! defined( 'SC_PATH' ) ) {
|
344 |
$fqlURL = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode( $fql );
|
345 |
|
346 |
$response = wp_remote_get( $fqlURL );
|
347 |
+
|
348 |
+
if ( ! is_wp_error( $response ) ) {
|
349 |
+
$response = json_decode( $response[ 'body' ] );
|
350 |
+
if ( is_array( $response ) && isset( $response[ 0 ] -> like_count ) ) {
|
351 |
+
return $response[ 0 ] -> like_count;
|
352 |
+
} else {
|
353 |
+
$count = '0';
|
354 |
+
return $count;
|
355 |
+
}
|
356 |
+
}else{
|
357 |
$count = '0';
|
358 |
return $count;
|
359 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
|
|
3 |
Tags: social count, social counter, social counters, social media counters, social media, social network, social profiles counter, social profile count, social profile, social icons, social icon counter
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -147,6 +147,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
150 |
= 1.8.5 =
|
151 |
* Bug fix related to social networks sorting
|
152 |
|
3 |
Tags: social count, social counter, social counters, social media counters, social media, social network, social profiles counter, social profile count, social profile, social icons, social icon counter
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 5.3.0
|
7 |
+
Stable tag: 1.8.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= 1.8.6 =
|
151 |
+
* Bug fix related to Facebook Count
|
152 |
+
|
153 |
= 1.8.5 =
|
154 |
* Bug fix related to social networks sorting
|
155 |
|