WordPress Share Buttons Plugin – AddThis - Version 1.6.8

Version Description

  • Ensured all ampersands are properly encoded
  • Added SSL support to admin dashboard
Download this release

Release Info

Developer _mjk_
Plugin Icon 128x128 WordPress Share Buttons Plugin – AddThis
Version 1.6.8
Comparing to
See all releases

Code changes from version 1.6.7 to 1.6.8

Files changed (3) hide show
  1. addthis_social_widget.php +2 -2
  2. js/addthis.js +3 -3
  3. readme.txt +6 -2
addthis_social_widget.php CHANGED
@@ -27,7 +27,7 @@ else return;
27
  * Plugin Name: AddThis Social Bookmarking Widget
28
  * Plugin URI: http://www.addthis.com
29
  * Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
30
- * Version: 1.6.7
31
  *
32
  * Author: The AddThis Team
33
  * Author URI: http://www.addthis.com
@@ -366,7 +366,7 @@ EOF;
366
  $content .= <<<EOF
367
  //-->
368
  </script>
369
- <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=$pub" onclick="window.open('http://www.addthis.com/bookmark.php?v=250&username=$pub&amp;url=$link&amp;title=$title', 'ext_addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank">
370
  EOF;
371
  $content .= addthis_get_button_img() . '</a></div>';
372
  }
27
  * Plugin Name: AddThis Social Bookmarking Widget
28
  * Plugin URI: http://www.addthis.com
29
  * Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
30
+ * Version: 1.6.8
31
  *
32
  * Author: The AddThis Team
33
  * Author URI: http://www.addthis.com
366
  $content .= <<<EOF
367
  //-->
368
  </script>
369
+ <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=$pub" onclick="window.open('http://www.addthis.com/bookmark.php?v=250&amp;username=$pub&amp;url=$link&amp;title=$title', 'ext_addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank">
370
  EOF;
371
  $content .= addthis_get_button_img() . '</a></div>';
372
  }
js/addthis.js CHANGED
@@ -23,7 +23,7 @@ function addthis_toggle_tabs(servicesOn) {
23
  function addthis_populate_services_table(username, password, max, table_id, header_id) {
24
  if (!at_populated_svcs) {
25
  // load service json
26
- jQuery.getJSON("http://api.addthis.com/analytics/1.0/pub/shares/service.json?suppress_response_codes=true&username="+encodeURIComponent(username)+"&password="+encodeURIComponent(password)+"&callback=?",
27
  function(data){
28
  if (!data || data.length == 0) {
29
  jQuery(header_id).text("No shares yesterday.");
@@ -32,7 +32,7 @@ function addthis_populate_services_table(username, password, max, table_id, head
32
  }
33
  if (data.error) {
34
  jQuery('#addthis_data_container').hide();
35
- jQuery(header_id).text("Error connecting to AddThis.");
36
  return;
37
  }
38
  jQuery(header_id).text("Yesterday At a Glance");
@@ -67,7 +67,7 @@ function addthis_populate_services_table(username, password, max, table_id, head
67
  function addthis_populate_posts_table(username, password, max, table_id, header_id) {
68
  if (!at_populated_content) {
69
  // get the top content data
70
- jQuery.getJSON("http://api.addthis.com/analytics/1.0/pub/shares/content.json?suppress_response_codes=true&username="+encodeURIComponent(username)+"&password="+encodeURIComponent(password)+"&callback=?",
71
  function(data){
72
  var other = 0;
73
  jQuery.each(data, function(i,item){
23
  function addthis_populate_services_table(username, password, max, table_id, header_id) {
24
  if (!at_populated_svcs) {
25
  // load service json
26
+ jQuery.getJSON("//api.addthis.com/analytics/1.0/pub/shares/service.json?suppress_response_codes=true&username="+encodeURIComponent(username)+"&password="+encodeURIComponent(password)+"&callback=?",
27
  function(data){
28
  if (!data || data.length == 0) {
29
  jQuery(header_id).text("No shares yesterday.");
32
  }
33
  if (data.error) {
34
  jQuery('#addthis_data_container').hide();
35
+ jQuery(header_id).text("Error connecting to AddThis: " + data.error.message);
36
  return;
37
  }
38
  jQuery(header_id).text("Yesterday At a Glance");
67
  function addthis_populate_posts_table(username, password, max, table_id, header_id) {
68
  if (!at_populated_content) {
69
  // get the top content data
70
+ jQuery.getJSON("//api.addthis.com/analytics/1.0/pub/shares/content.json?suppress_response_codes=true&username="+encodeURIComponent(username)+"&password="+encodeURIComponent(password)+"&callback=?",
71
  function(data){
72
  var other = 0;
73
  jQuery.each(data, function(i,item){
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: _mjk_
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
  Tested up to: 3.0.1
6
- Stable tag: 1.6.7
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
@@ -63,6 +63,10 @@ We currently support over 295 services, from email and blogging platforms to soc
63
  PHP 5+ is preferred; PHP 4 is supported.
64
 
65
  == Changelog ==
 
 
 
 
66
  = 1.6.7 =
67
  * Using wp_register_sidebar_widget() in WordPress installs that support it
68
 
@@ -71,7 +75,7 @@ PHP 5+ is preferred; PHP 4 is supported.
71
 
72
  = 1.6.5 =
73
  * Added support for arbitrary URL and title in template tag as optional parameters
74
- * i.e., <?php do_action( 'addthis_widget', $url, $title); ?>
75
  * Can be called, for example, with get_permalink() and the_title() within a post loop, or some other URL if necessary
76
 
77
  = 1.6.4 =
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
  Tested up to: 3.0.1
6
+ Stable tag: 1.6.8
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
63
  PHP 5+ is preferred; PHP 4 is supported.
64
 
65
  == Changelog ==
66
+ = 1.6.8 =
67
+ * Ensured all ampersands are properly encoded
68
+ * Added SSL support to admin dashboard
69
+
70
  = 1.6.7 =
71
  * Using wp_register_sidebar_widget() in WordPress installs that support it
72
 
75
 
76
  = 1.6.5 =
77
  * Added support for arbitrary URL and title in template tag as optional parameters
78
+ * i.e., &lt;?php do_action( 'addthis_widget', $url, $title); ?&gt;
79
  * Can be called, for example, with get_permalink() and the_title() within a post loop, or some other URL if necessary
80
 
81
  = 1.6.4 =