Social Count Plus - Version 3.3.3

Version Description

  • 2016/04/26 =

  • Updated the Facebook API to support APPs v2.5 or later.

Download this release

Release Info

Developer claudiosanches
Plugin Icon 128x128 Social Count Plus
Version 3.3.3
Comparing to
See all releases

Code changes from version 3.3.2 to 3.3.3

assets/css/counter.css CHANGED
@@ -1 +1 @@
1
- .social-count-plus{*zoom:1}.social-count-plus:after{content:"";display:table;clear:both}.social-count-plus .clear{clear:both}.social-count-plus ul{border:none !important;list-style:none !important;margin:0;padding:0}.social-count-plus li{background:none !important;border:none !important;clear:none !important;float:left;list-style:none !important;margin:0;padding:0 0 20px;text-align:center;width:60px}.social-count-plus .vertical li{*zoom:1;display:block;float:none;padding-bottom:10px;text-align:left;width:100%}.social-count-plus .vertical li:after{content:"";display:table;clear:both}.social-count-plus span{display:block;margin:0;padding:0}.social-count-plus a{-moz-transition:all 0.4s ease;-o-transition:all 0.4s ease;-webkit-transition:all 0.4s ease;transition:all 0.4s ease;display:block;margin:0 auto;opacity:1;padding:0 !important}.social-count-plus a:hover{opacity:0.7}.social-count-plus .default a{background-color:transparent !important;background-image:url("../images/sprite-default.png") !important;background-repeat:no-repeat !important;height:32px !important;width:32px !important}.social-count-plus .circle a{background-image:url("../images/sprite-circle.png") !important;height:37px !important;width:36px !important}.social-count-plus .flat a{background-image:url("../images/sprite-flat.png") !important;height:32px !important;width:32px !important}.social-count-plus .vertical a{float:left}.social-count-plus .vertical .items{float:left;margin-left:10px;text-align:left}.social-count-plus .count{display:block;font-size:14px;font-weight:bold;line-height:16px;margin:5px 0 0;padding:0}.social-count-plus .vertical .count{margin-top:3px}.social-count-plus .label{font-size:9px;font-weight:normal;line-height:16px;text-transform:capitalize}.social-count-plus .default .count-twitter a{background-position:0px 0 !important}.social-count-plus .circle .count-twitter a{background-position:0px 0 !important}.social-count-plus .flat .count-twitter a{background-position:0px 0 !important}.social-count-plus .default .count-facebook a{background-position:-32px 0 !important}.social-count-plus .circle .count-facebook a{background-position:-36px 0 !important}.social-count-plus .flat .count-facebook a{background-position:-32px 0 !important}.social-count-plus .default .count-youtube a{background-position:-64px 0 !important}.social-count-plus .circle .count-youtube a{background-position:-72px 0 !important}.social-count-plus .flat .count-youtube a{background-position:-64px 0 !important}.social-count-plus .default .count-googleplus a{background-position:-96px 0 !important}.social-count-plus .circle .count-googleplus a{background-position:-108px 0 !important}.social-count-plus .flat .count-googleplus a{background-position:-96px 0 !important}.social-count-plus .default .count-posts a{background-position:-128px 0 !important}.social-count-plus .circle .count-posts a{background-position:-144px 0 !important}.social-count-plus .flat .count-posts a{background-position:-128px 0 !important}.social-count-plus .default .count-comments a{background-position:-160px 0 !important}.social-count-plus .circle .count-comments a{background-position:-180px 0 !important}.social-count-plus .flat .count-comments a{background-position:-160px 0 !important}.social-count-plus .default .count-instagram a{background-position:-192px 0 !important}.social-count-plus .circle .count-instagram a{background-position:-216px 0 !important}.social-count-plus .flat .count-instagram a{background-position:-192px 0 !important}.social-count-plus .default .count-steam a{background-position:-224px 0 !important}.social-count-plus .circle .count-steam a{background-position:-252px 0 !important}.social-count-plus .flat .count-steam a{background-position:-224px 0 !important}.social-count-plus .default .count-soundcloud a{background-position:-256px 0 !important}.social-count-plus .circle .count-soundcloud a{background-position:-288px 0 !important}.social-count-plus .flat .count-soundcloud a{background-position:-256px 0 !important}.social-count-plus .default .count-twitch a{background-position:-288px 0 !important}.social-count-plus .circle .count-twitch a{background-position:-324px 0 !important}.social-count-plus .flat .count-twitch a{background-position:-288px 0 !important}.social-count-plus .default .count-linkedin a{background-position:-320px 0 !important}.social-count-plus .circle .count-linkedin a{background-position:-360px 0 !important}.social-count-plus .flat .count-linkedin a{background-position:-320px 0 !important}.social-count-plus .default .count-pinterest a{background-position:-352px 0 !important}.social-count-plus .circle .count-pinterest a{background-position:-396px 0 !important}.social-count-plus .flat .count-pinterest a{background-position:-352px 0 !important}.social-count-plus .default .count-vimeo a{background-position:-384px 0 !important}.social-count-plus .circle .count-vimeo a{background-position:-432px 0 !important}.social-count-plus .flat .count-vimeo a{background-position:-384px 0 !important}.social-count-plus .default .count-users a{background-position:-416px 0 !important}.social-count-plus .circle .count-users a{background-position:-468px 0 !important}.social-count-plus .flat .count-users a{background-position:-416px 0 !important}.social-count-plus .default .count-tumblr a{background-position:-448px 0 !important}.social-count-plus .circle .count-tumblr a{background-position:-504px 0 !important}.social-count-plus .flat .count-tumblr a{background-position:-448px 0 !important}.social-count-plus .default .count-github a{background-position:-480px 0 !important}.social-count-plus .circle .count-github a{background-position:-540px 0 !important}.social-count-plus .flat .count-github a{background-position:-480px 0 !important}
1
+ .social-count-plus{*zoom:1}.social-count-plus:after{content:"";display:table;clear:both}.social-count-plus .clear{clear:both}.social-count-plus ul{border:none !important;list-style:none !important;margin:0;padding:0}.social-count-plus li{background:none !important;border:none !important;clear:none !important;float:left;list-style:none !important;margin:0;padding:0 0 20px;text-align:center;width:60px}.social-count-plus .vertical li{*zoom:1;display:block;float:none;padding-bottom:10px;text-align:left;width:100%}.social-count-plus .vertical li:after{content:"";display:table;clear:both}.social-count-plus span{display:block;margin:0;padding:0}.social-count-plus a{-moz-transition:all .4s ease;-o-transition:all .4s ease;-webkit-transition:all .4s ease;transition:all .4s ease;display:block;margin:0 auto;opacity:1;padding:0 !important}.social-count-plus a:hover{opacity:0.7}.social-count-plus .default a{background-color:transparent !important;background-image:url("../images/sprite-default.png") !important;background-repeat:no-repeat !important;height:32px !important;width:32px !important}.social-count-plus .circle a{background-image:url("../images/sprite-circle.png") !important;height:37px !important;width:36px !important}.social-count-plus .flat a{background-image:url("../images/sprite-flat.png") !important;height:32px !important;width:32px !important}.social-count-plus .vertical a{float:left}.social-count-plus .vertical .items{float:left;margin-left:10px;text-align:left}.social-count-plus .count{display:block;font-size:14px;font-weight:bold;line-height:16px;margin:5px 0 0;padding:0}.social-count-plus .vertical .count{margin-top:3px}.social-count-plus .label{font-size:9px;font-weight:normal;line-height:16px;text-transform:capitalize}.social-count-plus .default .count-twitter a{background-position:0px 0 !important}.social-count-plus .circle .count-twitter a{background-position:0px 0 !important}.social-count-plus .flat .count-twitter a{background-position:0px 0 !important}.social-count-plus .default .count-facebook a{background-position:-32px 0 !important}.social-count-plus .circle .count-facebook a{background-position:-36px 0 !important}.social-count-plus .flat .count-facebook a{background-position:-32px 0 !important}.social-count-plus .default .count-youtube a{background-position:-64px 0 !important}.social-count-plus .circle .count-youtube a{background-position:-72px 0 !important}.social-count-plus .flat .count-youtube a{background-position:-64px 0 !important}.social-count-plus .default .count-googleplus a{background-position:-96px 0 !important}.social-count-plus .circle .count-googleplus a{background-position:-108px 0 !important}.social-count-plus .flat .count-googleplus a{background-position:-96px 0 !important}.social-count-plus .default .count-posts a{background-position:-128px 0 !important}.social-count-plus .circle .count-posts a{background-position:-144px 0 !important}.social-count-plus .flat .count-posts a{background-position:-128px 0 !important}.social-count-plus .default .count-comments a{background-position:-160px 0 !important}.social-count-plus .circle .count-comments a{background-position:-180px 0 !important}.social-count-plus .flat .count-comments a{background-position:-160px 0 !important}.social-count-plus .default .count-instagram a{background-position:-192px 0 !important}.social-count-plus .circle .count-instagram a{background-position:-216px 0 !important}.social-count-plus .flat .count-instagram a{background-position:-192px 0 !important}.social-count-plus .default .count-steam a{background-position:-224px 0 !important}.social-count-plus .circle .count-steam a{background-position:-252px 0 !important}.social-count-plus .flat .count-steam a{background-position:-224px 0 !important}.social-count-plus .default .count-soundcloud a{background-position:-256px 0 !important}.social-count-plus .circle .count-soundcloud a{background-position:-288px 0 !important}.social-count-plus .flat .count-soundcloud a{background-position:-256px 0 !important}.social-count-plus .default .count-twitch a{background-position:-288px 0 !important}.social-count-plus .circle .count-twitch a{background-position:-324px 0 !important}.social-count-plus .flat .count-twitch a{background-position:-288px 0 !important}.social-count-plus .default .count-linkedin a{background-position:-320px 0 !important}.social-count-plus .circle .count-linkedin a{background-position:-360px 0 !important}.social-count-plus .flat .count-linkedin a{background-position:-320px 0 !important}.social-count-plus .default .count-pinterest a{background-position:-352px 0 !important}.social-count-plus .circle .count-pinterest a{background-position:-396px 0 !important}.social-count-plus .flat .count-pinterest a{background-position:-352px 0 !important}.social-count-plus .default .count-vimeo a{background-position:-384px 0 !important}.social-count-plus .circle .count-vimeo a{background-position:-432px 0 !important}.social-count-plus .flat .count-vimeo a{background-position:-384px 0 !important}.social-count-plus .default .count-users a{background-position:-416px 0 !important}.social-count-plus .circle .count-users a{background-position:-468px 0 !important}.social-count-plus .flat .count-users a{background-position:-416px 0 !important}.social-count-plus .default .count-tumblr a{background-position:-448px 0 !important}.social-count-plus .circle .count-tumblr a{background-position:-504px 0 !important}.social-count-plus .flat .count-tumblr a{background-position:-448px 0 !important}.social-count-plus .default .count-github a{background-position:-480px 0 !important}.social-count-plus .circle .count-github a{background-position:-540px 0 !important}.social-count-plus .flat .count-github a{background-position:-480px 0 !important}
includes/admin/views/html-help-us.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
5
 
6
  ?>
7
 
8
- <div class="updated">
9
  <p><?php echo esc_html( sprintf( __( 'Help us keep the %s plugin free making a donation or rate %s on WordPress.org. Thank you in advance!', 'social-count-plus' ), __( 'Social Count Plus', 'social-count-plus' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ) ); ?></p>
10
  <p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Y8HP99ZJ5Z59L" target="_blank" class="button button-primary"><?php esc_html_e( 'Make a donation', 'social-count-plus' ); ?></a> <a href="https://wordpress.org/support/view/plugin-reviews/social-count-plus?filter=5#postform" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'social-count-plus' ); ?></a></p>
11
  </div>
5
 
6
  ?>
7
 
8
+ <div class="updated inline">
9
  <p><?php echo esc_html( sprintf( __( 'Help us keep the %s plugin free making a donation or rate %s on WordPress.org. Thank you in advance!', 'social-count-plus' ), __( 'Social Count Plus', 'social-count-plus' ), '&#9733;&#9733;&#9733;&#9733;&#9733;' ) ); ?></p>
10
  <p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Y8HP99ZJ5Z59L" target="_blank" class="button button-primary"><?php esc_html_e( 'Make a donation', 'social-count-plus' ); ?></a> <a href="https://wordpress.org/support/view/plugin-reviews/social-count-plus?filter=5#postform" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'social-count-plus' ); ?></a></p>
11
  </div>
includes/counters/class-social-count-plus-facebook-counter.php CHANGED
@@ -73,8 +73,8 @@ class Social_Count_Plus_Facebook_Counter extends Social_Count_Plus_Counter {
73
  if ( $this->is_available( $settings ) ) {
74
  $access_token = $this->get_access_token( $settings );
75
  $url = sprintf(
76
- '%s%s?fields=likes&%s',
77
- $this->api_url,
78
  sanitize_text_field( $settings['facebook_id'] ),
79
  $access_token
80
  );
@@ -86,8 +86,8 @@ class Social_Count_Plus_Facebook_Counter extends Social_Count_Plus_Counter {
86
  } else {
87
  $_data = json_decode( $this->connection['body'], true );
88
 
89
- if ( isset( $_data['likes'] ) ) {
90
- $count = intval( $_data['likes'] );
91
 
92
  $this->total = $count;
93
  } else {
73
  if ( $this->is_available( $settings ) ) {
74
  $access_token = $this->get_access_token( $settings );
75
  $url = sprintf(
76
+ '%s%s?fields=fan_count&%s',
77
+ $this->api_url . 'v2.6/',
78
  sanitize_text_field( $settings['facebook_id'] ),
79
  $access_token
80
  );
86
  } else {
87
  $_data = json_decode( $this->connection['body'], true );
88
 
89
+ if ( isset( $_data['fan_count'] ) ) {
90
+ $count = intval( $_data['fan_count'] );
91
 
92
  $this->total = $count;
93
  } else {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: claudiosanches, felipesantana, deblynprado
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y8HP99ZJ5Z59L
4
  Tags: counter, widget, shortcode, facebook, github, googleplus, instagram, linkedin, pinterest, soundcloud, steam, tumblr, twitch, twitter, vimeo, youtube
5
  Requires at least: 4.0
6
- Tested up to: 4.4
7
- Stable tag: 3.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -178,6 +178,10 @@ Copy the report file content and paste it in [gist.github.com](https://gist.gith
178
 
179
  == Changelog ==
180
 
 
 
 
 
181
  = 3.3.2 - 2015/09/28 =
182
 
183
  * Restored the `social_count_plus_number_format` filter.
@@ -191,53 +195,8 @@ Copy the report file content and paste it in [gist.github.com](https://gist.gith
191
  * Added option to show all user roles in users integration.
192
  * Fixed errors in PHP 5.2.
193
 
194
- = 3.2.0 - 2015/08/31 =
195
-
196
- * Added GitHub integration.
197
- * Added LinkedIn integration.
198
- * Added Pinterest integration.
199
- * Added Tumblr integration.
200
- * Added Vimeo integration.
201
- * Added users integration.
202
- * Added new "URL" options for comments and posts.
203
- * Improved the Twitch integration.
204
-
205
- = 3.1.1 - 2015/08/21 =
206
-
207
- * Fixed YouTube options description. Need a YouTube Channel ID and not a YouTube username.
208
-
209
- = 3.1.0 - 2015/08/21 =
210
-
211
- * Added Twitch integration.
212
- * Added new `social_count_plus_{$icon}html_counter` and `social_count_plus_icon_name_i18n` filters to help add new custom counters.
213
- * Fixed Facebook integration, now uses the Facebook API.
214
- * Fixed Google+ integration, now uses the Google API.
215
- * Fixed System Status test for `wp_remote_get()`.
216
-
217
- = 3.0.3 - 2015/04/21 =
218
-
219
- * Fixed errors in HHVM.
220
- * Fixed potential XSS vulnerability with add_query_arg().
221
-
222
- = 3.0.2 - 2014/12/30 =
223
-
224
- * Fixed the install/update method.
225
-
226
- = 3.0.1 - 2014/12/25 =
227
-
228
- * Used only HTTPS for the social links.
229
- * Removed rel nofollow and target blank for posts and comments.
230
-
231
- = 3.0.0 - 2014/05/24 =
232
-
233
- * Refactored all code.
234
- * Improved the admin option screens.
235
- * Added System Status admin screen.
236
- * Added option to display the widget without icons (this way it is simple for you to add your icons in your theme CSS).
237
- * Added option to sort the icons order.
238
-
239
  == Upgrade Notice ==
240
 
241
- = 3.3.2 =
242
 
243
- * Restored the `social_count_plus_number_format` filter.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y8HP99ZJ5Z59L
4
  Tags: counter, widget, shortcode, facebook, github, googleplus, instagram, linkedin, pinterest, soundcloud, steam, tumblr, twitch, twitter, vimeo, youtube
5
  Requires at least: 4.0
6
+ Tested up to: 4.5
7
+ Stable tag: 3.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
178
 
179
  == Changelog ==
180
 
181
+ = 3.3.3 - 2016/04/26 =
182
+
183
+ * Updated the Facebook API to support APPs v2.5 or later.
184
+
185
  = 3.3.2 - 2015/09/28 =
186
 
187
  * Restored the `social_count_plus_number_format` filter.
195
  * Added option to show all user roles in users integration.
196
  * Fixed errors in PHP 5.2.
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  == Upgrade Notice ==
199
 
200
+ = 3.3.3 =
201
 
202
+ * Updated the Facebook API to support APPs v2.5 or later.
social-count-plus.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Displays your numbers in Facebook, GitHub, Google+, Instagram, LinkedIn, Pinterest, SoundCloud, Steam Community, Tumblr, Twitch, Twitter, Vimeo, Youtube, posts, comments and users.
6
  * Author: Claudio Sanches
7
  * Author URI: http://claudiosmweb.com/
8
- * Version: 3.3.2
9
  * License: GPLv2 or later
10
  * Text Domain: social-count-plus
11
  * Domain Path: /languages/
@@ -31,7 +31,7 @@ class Social_Count_Plus {
31
  *
32
  * @var string
33
  */
34
- const VERSION = '3.3.2';
35
 
36
  /**
37
  * Instance of this class.
5
  * Description: Displays your numbers in Facebook, GitHub, Google+, Instagram, LinkedIn, Pinterest, SoundCloud, Steam Community, Tumblr, Twitch, Twitter, Vimeo, Youtube, posts, comments and users.
6
  * Author: Claudio Sanches
7
  * Author URI: http://claudiosmweb.com/
8
+ * Version: 3.3.3
9
  * License: GPLv2 or later
10
  * Text Domain: social-count-plus
11
  * Domain Path: /languages/
31
  *
32
  * @var string
33
  */
34
+ const VERSION = '3.3.3';
35
 
36
  /**
37
  * Instance of this class.