Version Description
- Replaced file_get_contents with wp_remote_get for FQL
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.6.9 |
Comparing to | |
See all releases |
Code changes from version 1.6.8 to 1.6.9
- accesspress-social-counter.php +4 -4
- readme.txt +4 -1
accesspress-social-counter.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: AccessPress Social Counter
|
4 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
5 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
6 |
-
* Version: 1.6.
|
7 |
* Author: AccessPress Themes
|
8 |
* Author URI: http://accesspressthemes.com
|
9 |
* Text Domain: aps-counter
|
@@ -24,7 +24,7 @@ if (!defined('SC_CSS_DIR')) {
|
|
24 |
define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
|
25 |
}
|
26 |
if (!defined('SC_VERSION')) {
|
27 |
-
define('SC_VERSION', '1.6.
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
@@ -363,8 +363,8 @@ if (!class_exists('SC_Class')) {
|
|
363 |
$fqlURL = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode($fql);
|
364 |
|
365 |
// Facebook Response is in JSON
|
366 |
-
$response =
|
367 |
-
$response = json_decode($response);
|
368 |
if(is_array($response) && isset($response[0]->like_count)){
|
369 |
return $response[0]->like_count;
|
370 |
}else{
|
3 |
* Plugin Name: AccessPress Social Counter
|
4 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
5 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
6 |
+
* Version: 1.6.9
|
7 |
* Author: AccessPress Themes
|
8 |
* Author URI: http://accesspressthemes.com
|
9 |
* Text Domain: aps-counter
|
24 |
define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
|
25 |
}
|
26 |
if (!defined('SC_VERSION')) {
|
27 |
+
define('SC_VERSION', '1.6.9');
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
363 |
$fqlURL = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode($fql);
|
364 |
|
365 |
// Facebook Response is in JSON
|
366 |
+
$response = wp_remote_get($fqlURL);
|
367 |
+
$response = json_decode($response['body']);
|
368 |
if(is_array($response) && isset($response[0]->like_count)){
|
369 |
return $response[0]->like_count;
|
370 |
}else{
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social count, social counter, social counters, social media counters, soci
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -135,6 +135,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
135 |
5. Backend Cache Settings Section
|
136 |
|
137 |
== Changelog ==
|
|
|
|
|
|
|
138 |
= 1.6.8 =
|
139 |
* Done small change in backend checkbox label layout
|
140 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.6.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
135 |
5. Backend Cache Settings Section
|
136 |
|
137 |
== Changelog ==
|
138 |
+
= 1.6.9 =
|
139 |
+
* Replaced file_get_contents with wp_remote_get for FQL
|
140 |
+
|
141 |
= 1.6.8 =
|
142 |
* Done small change in backend checkbox label layout
|
143 |
|