Version Description
- Fixed: Included unnecessary string (like Tweet, Pocket) in the excerpt
Download this release
Release Info
Developer | utahvich |
Plugin | WP Social Bookmarking Light |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- modules/content.php +30 -7
- readme.txt +4 -1
- wp-social-bookmarking-light.php +1 -1
modules/content.php
CHANGED
@@ -117,22 +117,45 @@ function wp_social_bookmarking_light_wp_head()
|
|
117 |
}
|
118 |
|
119 |
/**
|
120 |
-
*
|
|
|
|
|
121 |
*/
|
122 |
-
function
|
123 |
{
|
124 |
-
if(
|
125 |
-
|
126 |
}
|
127 |
|
128 |
$options = wp_social_bookmarking_light_options();
|
129 |
-
if(
|
130 |
-
return
|
131 |
}
|
132 |
-
if(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
return $content;
|
134 |
}
|
135 |
|
|
|
136 |
$out = wp_social_bookmarking_light_output( $options['services'], get_permalink(), get_the_title() );
|
137 |
if( $out == '' ){
|
138 |
return $content;
|
117 |
}
|
118 |
|
119 |
/**
|
120 |
+
* true if can be displayed, false if not
|
121 |
+
*
|
122 |
+
* @return bool
|
123 |
*/
|
124 |
+
function wp_social_bookmarking_light_is_enabled()
|
125 |
{
|
126 |
+
if (is_feed() || is_404() || is_robots() || is_comments_popup() || (function_exists( 'is_ktai' ) && is_ktai())) {
|
127 |
+
return false;
|
128 |
}
|
129 |
|
130 |
$options = wp_social_bookmarking_light_options();
|
131 |
+
if ($options['single_page'] && !is_singular()) {
|
132 |
+
return false;
|
133 |
}
|
134 |
+
if (!$options['is_page'] && is_page()) {
|
135 |
+
return false;
|
136 |
+
}
|
137 |
+
|
138 |
+
global $wp_current_filter;
|
139 |
+
if (in_array('get_the_excerpt', (array)$wp_current_filter)) {
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
return true;
|
143 |
+
}
|
144 |
+
|
145 |
+
/**
|
146 |
+
* Add the Share Buttons to the content.
|
147 |
+
* add_filter "the_content"
|
148 |
+
*
|
149 |
+
* @param string $content
|
150 |
+
* @return string
|
151 |
+
*/
|
152 |
+
function wp_social_bookmarking_light_the_content($content)
|
153 |
+
{
|
154 |
+
if (!wp_social_bookmarking_light_is_enabled()) {
|
155 |
return $content;
|
156 |
}
|
157 |
|
158 |
+
$options = wp_social_bookmarking_light_options();
|
159 |
$out = wp_social_bookmarking_light_output( $options['services'], get_permalink(), get_the_title() );
|
160 |
if( $out == '' ){
|
161 |
return $content;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://github.com/utahta/WP-Social-Bookmarking-Light/wiki/Donate
|
|
4 |
Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, @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, atode, toread, line, pocket, Pinterest
|
5 |
Requires at least: 2.9.0
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.8.
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
@@ -61,6 +61,9 @@ This is the list of used social sites:
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
64 |
= 1.8.2 =
|
65 |
* Fixed: Undefined index: dnt (Twitter Button)
|
66 |
|
4 |
Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, @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, atode, toread, line, pocket, Pinterest
|
5 |
Requires at least: 2.9.0
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.8.3
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.8.3 =
|
65 |
+
* Fixed: Included unnecessary string (like Tweet, Pocket) in the excerpt
|
66 |
+
|
67 |
= 1.8.2 =
|
68 |
* Fixed: Undefined index: dnt (Twitter Button)
|
69 |
|
wp-social-bookmarking-light.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/utahta/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: https://github.com/utahta/WP-Social-Bookmarking-Light
|
8 |
-
Version: 1.8.
|
9 |
*/
|
10 |
/*
|
11 |
Copyright 2010 utahta (email : labs.ninxit@gmail.com)
|
5 |
Description: This plugin inserts social share links at the top or bottom of each post.
|
6 |
Author: utahta
|
7 |
Author URI: https://github.com/utahta/WP-Social-Bookmarking-Light
|
8 |
+
Version: 1.8.3
|
9 |
*/
|
10 |
/*
|
11 |
Copyright 2010 utahta (email : labs.ninxit@gmail.com)
|