Version Description
- Added a site specific id to each links anchor tag.
- Fixed the bug mentioned here and here that made it impossible to disable Sociable on a per post/page basis.
- "Reintroduced" TwitThis as Twitter.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Sociable |
Version | 3.4.2 |
Comparing to | |
See all releases |
Code changes from version 3.4.1 to 3.4.2
- readme.txt +8 -3
- sociable.php +21 -5
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: joostdevalk, sociable
|
|
3 |
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.
|
7 |
-
Stable tag: 3.4.
|
8 |
|
9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
10 |
|
@@ -24,8 +24,13 @@ More info:
|
|
24 |
|
25 |
== Changelog ==
|
26 |
|
|
|
|
|
|
|
|
|
|
|
27 |
= 3.4.1 =
|
28 |
-
* Fixed the Sphinn submit link
|
29 |
|
30 |
= 3.4 =
|
31 |
* Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
|
3 |
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.2
|
7 |
+
Stable tag: 3.4.2
|
8 |
|
9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
10 |
|
24 |
|
25 |
== Changelog ==
|
26 |
|
27 |
+
= 3.4.2 =
|
28 |
+
* Added a site specific id to each links anchor tag.
|
29 |
+
* Fixed the bug mentioned [here](http://wordpress.org/support/topic/288487) and [here](http://wordpress.org/support/topic/290753) that made it impossible to disable Sociable on a per post/page basis.
|
30 |
+
* "Reintroduced" TwitThis as Twitter.
|
31 |
+
|
32 |
= 3.4.1 =
|
33 |
+
* Fixed the Sphinn submit link.
|
34 |
|
35 |
= 3.4 =
|
36 |
* Added the option to add a site to Sociable through a filter, read [How to add a site to Sociable](http://yoast.com/add-sites-to-sociable/).
|
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.4.
|
7 |
Author: Joost de Valk
|
8 |
Author URI: http://yoast.com/
|
9 |
|
@@ -30,6 +30,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
30 |
*/
|
31 |
$sociablepluginpath = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/';
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
/**
|
34 |
* This function makes sure Sociable is able to load the different language files from
|
35 |
* the i18n subfolder of the Sociable directory
|
@@ -467,6 +476,12 @@ $sociable_known_sites = Array(
|
|
467 |
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
468 |
),
|
469 |
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
'Twitter' => Array(
|
471 |
'favicon' => 'twitter.png',
|
472 |
'awesm_channel' => 'twitter',
|
@@ -681,7 +696,8 @@ function sociable_html($display=array()) {
|
|
681 |
* and optionally add target=_blank to open in a new window if that option is set in the
|
682 |
* backend.
|
683 |
*/
|
684 |
-
$link .=
|
|
|
685 |
if (get_option('sociable_usetargetblank')) {
|
686 |
$link .= " target=\"_blank\"";
|
687 |
}
|
@@ -870,11 +886,11 @@ function sociable_meta() {
|
|
870 |
global $post;
|
871 |
$sociableoff = false;
|
872 |
$sociableoffmeta = get_post_meta($post->ID,'sociableoff',true);
|
873 |
-
if ($sociableoffmeta == "true" || $sociableoffmeta
|
874 |
$sociableoff = true;
|
875 |
}
|
876 |
?>
|
877 |
-
<input type="checkbox" id="sociableoff" name="sociableoff" <?php
|
878 |
<?php
|
879 |
}
|
880 |
|
@@ -892,7 +908,7 @@ add_action('admin_menu', 'sociable_meta_box');
|
|
892 |
*/
|
893 |
function sociable_insert_post($pID) {
|
894 |
delete_post_meta($pID, 'sociableoff');
|
895 |
-
|
896 |
}
|
897 |
add_action('wp_insert_post', 'sociable_insert_post');
|
898 |
|
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.4.3
|
7 |
Author: Joost de Valk
|
8 |
Author URI: http://yoast.com/
|
9 |
|
30 |
*/
|
31 |
$sociablepluginpath = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/';
|
32 |
|
33 |
+
/**
|
34 |
+
* For backwards compatibility, esc_attr was added in 2.8
|
35 |
+
*/
|
36 |
+
if (! function_exists('esc_attr')) {
|
37 |
+
function esc_attr( $text ) {
|
38 |
+
return attribute_escape( $text );
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
/**
|
43 |
* This function makes sure Sociable is able to load the different language files from
|
44 |
* the i18n subfolder of the Sociable directory
|
476 |
'url' => 'http://www.tumblr.com/share?v=3&u=PERMALINK&t=TITLE&s=EXCERPT',
|
477 |
),
|
478 |
|
479 |
+
'Twitthis' => Array(
|
480 |
+
'favicon' => 'twitter.png',
|
481 |
+
'awesm_channel' => 'twitter',
|
482 |
+
'url' => 'http://twitter.com/home?status=TITLE%20-%20PERMALINK',
|
483 |
+
),
|
484 |
+
|
485 |
'Twitter' => Array(
|
486 |
'favicon' => 'twitter.png',
|
487 |
'awesm_channel' => 'twitter',
|
696 |
* and optionally add target=_blank to open in a new window if that option is set in the
|
697 |
* backend.
|
698 |
*/
|
699 |
+
$link .= '<a rel="nofollow"';
|
700 |
+
$link .= ' id="'.esc_attr(strtolower($sitename)).'"';
|
701 |
if (get_option('sociable_usetargetblank')) {
|
702 |
$link .= " target=\"_blank\"";
|
703 |
}
|
886 |
global $post;
|
887 |
$sociableoff = false;
|
888 |
$sociableoffmeta = get_post_meta($post->ID,'sociableoff',true);
|
889 |
+
if ($sociableoffmeta == "true" || $sociableoffmeta == true) {
|
890 |
$sociableoff = true;
|
891 |
}
|
892 |
?>
|
893 |
+
<input type="checkbox" id="sociableoff" name="sociableoff" <?php checked($sociableoff); ?>/> <label for="sociableoff"><?php _e('Sociable disabled?','sociable') ?></label>
|
894 |
<?php
|
895 |
}
|
896 |
|
908 |
*/
|
909 |
function sociable_insert_post($pID) {
|
910 |
delete_post_meta($pID, 'sociableoff');
|
911 |
+
add_post_meta($pID, 'sociableoff', (isset($_POST['sociableoff']) ? true : false), true);
|
912 |
}
|
913 |
add_action('wp_insert_post', 'sociable_insert_post');
|
914 |
|