Version Description
Download this release
Release Info
Developer | joostdevalk |
Plugin | Sociable |
Version | 2.9.11 |
Comparing to | |
See all releases |
Code changes from version 2.9.10 to 2.9.11
- book_add.png +0 -0
- readme.txt +2 -1
- sociable.php +26 -1
book_add.png
ADDED
Binary file
|
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.2
|
6 |
Tested up to: 2.7
|
7 |
-
stable tag: 2.9.
|
8 |
|
9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
10 |
|
@@ -19,6 +19,7 @@ More info:
|
|
19 |
|
20 |
**Changelog**
|
21 |
|
|
|
22 |
* 2.9.10 Fixes issue with excerpt not being urlencoded
|
23 |
* 2.9.9 Fixes for the custom fields issue.
|
24 |
* 2.9.8 Fixes for WP 2.7
|
4 |
Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.7
|
7 |
+
stable tag: 2.9.11
|
8 |
|
9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
10 |
|
19 |
|
20 |
**Changelog**
|
21 |
|
22 |
+
* 2.9.11 Added settings link and Ozh admin menu icon
|
23 |
* 2.9.10 Fixes issue with excerpt not being urlencoded
|
24 |
* 2.9.9 Fixes for the custom fields issue.
|
25 |
* 2.9.8 Fixes for WP 2.7
|
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. Go to <a href="options-general.php?page=Sociable">Settings -> Sociable</a> for setup.
|
6 |
-
Version: 2.9.
|
7 |
Author: Joost de Valk
|
8 |
Author URI: http://yoast.com/
|
9 |
|
@@ -1135,6 +1135,31 @@ function sociable_submenu() {
|
|
1135 |
<?php
|
1136 |
}
|
1137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1138 |
if (get_option('sociable_usecss_set_once') != true) {
|
1139 |
update_option('sociable_usecss', true);
|
1140 |
update_option('sociable_usecss_set_once', true);
|
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. Go to <a href="options-general.php?page=Sociable">Settings -> Sociable</a> for setup.
|
6 |
+
Version: 2.9.11
|
7 |
Author: Joost de Valk
|
8 |
Author URI: http://yoast.com/
|
9 |
|
1135 |
<?php
|
1136 |
}
|
1137 |
|
1138 |
+
function sociable_add_ozh_adminmenu_icon( $hook ) {
|
1139 |
+
static $sociableicon;
|
1140 |
+
if (!$sociableicon) {
|
1141 |
+
$sociableicon = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)). '/book_add.png';
|
1142 |
+
}
|
1143 |
+
if ($hook == 'Sociable') return $sociableicon;
|
1144 |
+
return $hook;
|
1145 |
+
}
|
1146 |
+
|
1147 |
+
function sociable_filter_plugin_actions( $links, $file ){
|
1148 |
+
//Static so we don't call plugin_basename on every plugin row.
|
1149 |
+
static $this_plugin;
|
1150 |
+
if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
|
1151 |
+
|
1152 |
+
if ( $file == $this_plugin ){
|
1153 |
+
$settings_link = '<a href="options-general.php?page=Sociable">' . __('Settings') . '</a>';
|
1154 |
+
array_unshift( $links, $settings_link ); // before other links
|
1155 |
+
}
|
1156 |
+
return $links;
|
1157 |
+
}
|
1158 |
+
|
1159 |
+
add_filter( 'plugin_action_links', 'sociable_filter_plugin_actions', 10, 2 );
|
1160 |
+
add_filter( 'ozh_adminmenu_icon', 'sociable_add_ozh_adminmenu_icon' );
|
1161 |
+
|
1162 |
+
|
1163 |
if (get_option('sociable_usecss_set_once') != true) {
|
1164 |
update_option('sociable_usecss', true);
|
1165 |
update_option('sociable_usecss_set_once', true);
|