Sociable - Version 3.3.4

Version Description

  • Fixed RSS.
Download this release

Release Info

Developer joostdevalk
Plugin Icon wp plugin Sociable
Version 3.3.4
Comparing to
See all releases

Code changes from version 3.3.3 to 3.3.4

Files changed (2) hide show
  1. readme.txt +5 -2
  2. sociable.php +10 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
4
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
5
  Requires at least: 2.6
6
  Tested up to: 2.8.1
7
- Stable tag: 3.3.3
8
 
9
  Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
10
 
@@ -25,7 +25,10 @@ More info:
25
 
26
  == Changelog ==
27
 
28
- = 3.3.2 =
 
 
 
29
  * Brought back Tumblr
30
  * Updated PDF link
31
  * Added Posterous
4
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
5
  Requires at least: 2.6
6
  Tested up to: 2.8.1
7
+ Stable tag: 3.3.4
8
 
9
  Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
10
 
25
 
26
  == Changelog ==
27
 
28
+ = 3.3.4 =
29
+ * Fixed RSS.
30
+
31
+ = 3.3.3 =
32
  * Brought back Tumblr
33
  * Updated PDF link
34
  * Added Posterous
sociable.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Sociable
4
  Plugin URI: http://yoast.com/wordpress/sociable/
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
- Version: 3.3.3
7
  Author: Joost de Valk
8
  Author URI: http://yoast.com/
9
 
@@ -1009,6 +1009,15 @@ if (get_option('sociable_usecss_set_once') != true) {
1009
  }
1010
 
1011
  if (!function_exists('yst_db_widget')) {
 
 
 
 
 
 
 
 
 
1012
  function yst_db_widget($image = 'normal', $num = 3, $excerptsize = 250, $showdate = true) {
1013
  require_once(ABSPATH.WPINC.'/rss.php');
1014
  if ( $rss = fetch_rss( 'http://feeds2.feedburner.com/joostdevalk' ) ) {
3
  Plugin Name: Sociable
4
  Plugin URI: http://yoast.com/wordpress/sociable/
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
+ Version: 3.3.4
7
  Author: Joost de Valk
8
  Author URI: http://yoast.com/
9
 
1009
  }
1010
 
1011
  if (!function_exists('yst_db_widget')) {
1012
+ function yst_text_limit( $text, $limit, $finish = ' […]') {
1013
+ if( strlen( $text ) > $limit ) {
1014
+ $text = substr( $text, 0, $limit );
1015
+ $text = substr( $text, 0, - ( strlen( strrchr( $text,' ') ) ) );
1016
+ $text .= $finish;
1017
+ }
1018
+ return $text;
1019
+ }
1020
+
1021
  function yst_db_widget($image = 'normal', $num = 3, $excerptsize = 250, $showdate = true) {
1022
  require_once(ABSPATH.WPINC.'/rss.php');
1023
  if ( $rss = fetch_rss( 'http://feeds2.feedburner.com/joostdevalk' ) ) {