Version Description
- Fixed the option to disable Sociable on a per post / page basis.
Download this release
Release Info
| Developer | joostdevalk |
| Plugin | |
| Version | 3.3.8 |
| Comparing to | |
| See all releases | |
Code changes from version 3.3.7 to 3.3.8
- readme.txt +4 -1
- sociable.php +7 -7
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.
|
| 8 |
|
| 9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
| 10 |
|
|
@@ -24,6 +24,9 @@ More info:
|
|
| 24 |
|
| 25 |
== Changelog ==
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
= 3.3.7 =
|
| 28 |
* More bugfixery.
|
| 29 |
|
| 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.8
|
| 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.3.8 =
|
| 28 |
+
* Fixed the option to disable Sociable on a per post / page basis.
|
| 29 |
+
|
| 30 |
= 3.3.7 =
|
| 31 |
* More bugfixery.
|
| 32 |
|
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.
|
| 7 |
Author: Joost de Valk
|
| 8 |
Author URI: http://yoast.com/
|
| 9 |
|
|
@@ -546,10 +546,10 @@ $sociable_known_sites = Array(
|
|
| 546 |
* @return string $html HTML for links list.
|
| 547 |
*/
|
| 548 |
function sociable_html($display=array()) {
|
| 549 |
-
global $sociable_known_sites, $sociablepluginpath, $wp_query;
|
| 550 |
|
| 551 |
-
$
|
| 552 |
-
if ($
|
| 553 |
return "";
|
| 554 |
}
|
| 555 |
|
|
@@ -860,11 +860,11 @@ function sociable_meta() {
|
|
| 860 |
global $post;
|
| 861 |
$sociableoff = false;
|
| 862 |
$sociableoffmeta = get_post_meta($post->ID,'sociableoff',true);
|
| 863 |
-
if ($sociableoffmeta == "true") {
|
| 864 |
$sociableoff = true;
|
| 865 |
}
|
| 866 |
?>
|
| 867 |
-
<input type="checkbox" name="sociableoff" <?php if ($sociableoff) { echo 'checked="checked"'; } ?>/>
|
| 868 |
<?php
|
| 869 |
}
|
| 870 |
|
|
@@ -882,7 +882,7 @@ add_action('admin_menu', 'sociable_meta_box');
|
|
| 882 |
*/
|
| 883 |
function sociable_insert_post($pID) {
|
| 884 |
delete_post_meta($pID, 'sociableoff');
|
| 885 |
-
update_post_meta($pID, 'sociableoff', ($_POST['sociableoff'] ?
|
| 886 |
}
|
| 887 |
add_action('wp_insert_post', 'sociable_insert_post');
|
| 888 |
|
| 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.8
|
| 7 |
Author: Joost de Valk
|
| 8 |
Author URI: http://yoast.com/
|
| 9 |
|
| 546 |
* @return string $html HTML for links list.
|
| 547 |
*/
|
| 548 |
function sociable_html($display=array()) {
|
| 549 |
+
global $sociable_known_sites, $sociablepluginpath, $wp_query, $post;
|
| 550 |
|
| 551 |
+
$sociableoff = get_post_meta($post->ID,'sociableoff',true);
|
| 552 |
+
if ($sociableoff === true || $sociableoff == "true") {
|
| 553 |
return "";
|
| 554 |
}
|
| 555 |
|
| 860 |
global $post;
|
| 861 |
$sociableoff = false;
|
| 862 |
$sociableoffmeta = get_post_meta($post->ID,'sociableoff',true);
|
| 863 |
+
if ($sociableoffmeta == "true" || $sociableoffmeta === true) {
|
| 864 |
$sociableoff = true;
|
| 865 |
}
|
| 866 |
?>
|
| 867 |
+
<input type="checkbox" id="sociableoff" name="sociableoff" <?php if ($sociableoff) { echo 'checked="checked"'; } ?>/> <label for="sociableoff"><?php _e('Sociable disabled?','sociable') ?></label>
|
| 868 |
<?php
|
| 869 |
}
|
| 870 |
|
| 882 |
*/
|
| 883 |
function sociable_insert_post($pID) {
|
| 884 |
delete_post_meta($pID, 'sociableoff');
|
| 885 |
+
update_post_meta($pID, 'sociableoff', (isset($_POST['sociableoff']) ? true : false));
|
| 886 |
}
|
| 887 |
add_action('wp_insert_post', 'sociable_insert_post');
|
| 888 |
|
