WP Social Bookmarking Light - Version 1.6.2

Version Description

  • Bug fixed: Parser error on PHP4. Thanks to milligramme and rik_wuts.
Download this release

Release Info

Developer utahvich
Plugin Icon wp plugin WP Social Bookmarking Light
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wp-social-bookmarking-light.php +16 -15
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://pledgie.com/campaigns/14051
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Yahoo!Buzz, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook, reddit, LinkedIn, Evernote, Instapaper, StumbleUpon, mixi, gree
5
  Requires at least: 2.9.0
6
  Tested up to: 3.0.1
7
- Stable tag: 1.6.1
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -54,6 +54,9 @@ This is the list of used social sites:
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.6.1 =
58
  * Added: Service code check function.
59
 
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Yahoo!Buzz, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook, reddit, LinkedIn, Evernote, Instapaper, StumbleUpon, mixi, gree
5
  Requires at least: 2.9.0
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.6.2
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.6.2 =
58
+ * Bug fixed: Parser error on PHP4. Thanks to milligramme and rik_wuts.
59
+
60
  = 1.6.1 =
61
  * Added: Service code check function.
62
 
wp-social-bookmarking-light.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ninxit.com/blog/2010/06/13/wp-social-bookmarking-light/
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: http://www.ninxit.com/blog/
8
- Version: 1.6.1
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -71,18 +71,6 @@ class WpSocialBookmarkingLight
71
  ."</a>" );
72
  }
73
 
74
- static function get_methods(){
75
- $all_methods = get_class_methods("WpSocialBookmarkingLight");
76
- $except_methods = array('WpSocialBookmarkingLight', 'to_utf8', 'link_raw', 'link', 'get_methods');
77
- foreach($all_methods as $method){
78
- if(in_array($method, $except_methods)){
79
- continue;
80
- }
81
- $methods[] = $method;
82
- }
83
- return $methods;
84
- }
85
-
86
  /**
87
  * @brief Hatena Bookmark
88
  */
@@ -465,6 +453,19 @@ class WpSocialBookmarkingLight
465
 
466
  }
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  function wp_social_bookmarking_light_default_options()
469
  {
470
  return array( "services" => "hatena, hatena_users, facebook, google_buzz, yahoo, livedoor, friendfeed, tweetmeme",
@@ -663,7 +664,7 @@ function wsbl_options_toggle_all(is_simply)
663
 
664
  function wsbl_check_service_code()
665
  {
666
- var methods = <?php echo "\"".implode(',', WpSocialBookmarkingLight::get_methods())."\""?>;
667
  methods = jQuery.map(methods.split(','), function(n, i){
668
  return jQuery.trim(n);
669
  });
@@ -806,7 +807,7 @@ function wp_social_bookmarking_light_options_page()
806
  <th scope="row">Services: <br/> <span style="font-size:10px">(comma-separated)</span></th>
807
  <td>
808
  <input type="text" id='services_id' name='services' value="<?php echo $options['services'] ?>"size=120 style="font-size:12px !important" />
809
- <div id='unknown_services_id' style='color:red;'></div>
810
  </td>
811
  </tr>
812
  </table>
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: http://www.ninxit.com/blog/
8
+ Version: 1.6.2
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
71
  ."</a>" );
72
  }
73
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  /**
75
  * @brief Hatena Bookmark
76
  */
453
 
454
  }
455
 
456
+ function wp_social_bookmarking_light_get_class_methods(){
457
+ $all_methods = get_class_methods('WpSocialBookmarkingLight');
458
+ $except_methods = array('WpSocialBookmarkingLight', 'to_utf8', 'link_raw', 'link', 'get_methods');
459
+ $methods = array();
460
+ foreach($all_methods as $method){
461
+ if(in_array($method, $except_methods)){
462
+ continue;
463
+ }
464
+ $methods[] = $method;
465
+ }
466
+ return $methods;
467
+ }
468
+
469
  function wp_social_bookmarking_light_default_options()
470
  {
471
  return array( "services" => "hatena, hatena_users, facebook, google_buzz, yahoo, livedoor, friendfeed, tweetmeme",
664
 
665
  function wsbl_check_service_code()
666
  {
667
+ var methods = <?php echo "\"".implode(',', wp_social_bookmarking_light_get_class_methods())."\""?>;
668
  methods = jQuery.map(methods.split(','), function(n, i){
669
  return jQuery.trim(n);
670
  });
807
  <th scope="row">Services: <br/> <span style="font-size:10px">(comma-separated)</span></th>
808
  <td>
809
  <input type="text" id='services_id' name='services' value="<?php echo $options['services'] ?>"size=120 style="font-size:12px !important" />
810
+ <div id='unknown_services_id' style='color:red'></div>
811
  </td>
812
  </tr>
813
  </table>