Version Description
- fixed issue causing tweets to display incorrectly on iOS Twitter App (thanks to Cameron Conaway for the bug report in the forums)
- Ampersands are now correctly displayed.
- began master plan moving toward world domination.
Download this release
Release Info
Developer | ben.meredith@gmail.com |
Plugin | Better Click To Tweet |
Version | 4.5 |
Comparing to | |
See all releases |
Code changes from version 4.4.1 to 4.5
- better-click-to-tweet.php +5 -6
- readme.txt +8 -5
better-click-to-tweet.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Better Click To Tweet
|
4 |
Description: The only Click To Tweet plugin to add translation support. The only Click To Tweet plugin to take into account your Twitter username's length in truncating long tweets, or to correctly take into account non-Roman characters. Simply put, as Click To Tweet plugins go, this one is, well, BETTER.
|
5 |
-
Version: 4.
|
6 |
Author: Ben Meredith
|
7 |
Author URI: http://benandjacq.com
|
8 |
Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
@@ -46,7 +46,7 @@ function bctt_shorten( $input, $length, $ellipsis = true, $strip_html = true ) {
|
|
46 |
$trimmed_text = mb_substr( $input, 0, $last_space );
|
47 |
|
48 |
if ( $ellipsis ) {
|
49 |
-
$trimmed_text .= '
|
50 |
}
|
51 |
|
52 |
return $trimmed_text;
|
@@ -61,7 +61,7 @@ function bctt_shorten( $input, $length, $ellipsis = true, $strip_html = true ) {
|
|
61 |
$trimmed_text = substr( $input, 0, $last_space );
|
62 |
|
63 |
if ( $ellipsis ) {
|
64 |
-
$trimmed_text .= '
|
65 |
}
|
66 |
|
67 |
return $trimmed_text;
|
@@ -165,10 +165,10 @@ function bctt_shortcode( $atts ) {
|
|
165 |
|
166 |
if ( ! is_feed() ) {
|
167 |
|
168 |
-
return "<div class='bctt-click-to-tweet'><span class='bctt-ctt-text'><a href='https://twitter.com/intent/tweet?text=" .
|
169 |
} else {
|
170 |
|
171 |
-
return "<hr /><p><em>" . $short . "</em><br /><a href='https://twitter.com/intent/tweet?text=" .
|
172 |
|
173 |
};
|
174 |
}
|
@@ -246,4 +246,3 @@ function bctt_options_link( $links ) {
|
|
246 |
|
247 |
$bcttlink = plugin_basename( __FILE__ );
|
248 |
add_filter( "plugin_action_links_$bcttlink", 'bctt_options_link' );
|
249 |
-
|
2 |
/*
|
3 |
Plugin Name: Better Click To Tweet
|
4 |
Description: The only Click To Tweet plugin to add translation support. The only Click To Tweet plugin to take into account your Twitter username's length in truncating long tweets, or to correctly take into account non-Roman characters. Simply put, as Click To Tweet plugins go, this one is, well, BETTER.
|
5 |
+
Version: 4.5
|
6 |
Author: Ben Meredith
|
7 |
Author URI: http://benandjacq.com
|
8 |
Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
46 |
$trimmed_text = mb_substr( $input, 0, $last_space );
|
47 |
|
48 |
if ( $ellipsis ) {
|
49 |
+
$trimmed_text .= '…';
|
50 |
}
|
51 |
|
52 |
return $trimmed_text;
|
61 |
$trimmed_text = substr( $input, 0, $last_space );
|
62 |
|
63 |
if ( $ellipsis ) {
|
64 |
+
$trimmed_text .= '…';
|
65 |
}
|
66 |
|
67 |
return $trimmed_text;
|
165 |
|
166 |
if ( ! is_feed() ) {
|
167 |
|
168 |
+
return "<div class='bctt-click-to-tweet'><span class='bctt-ctt-text'><a href='https://twitter.com/intent/tweet?text=" . rawurlencode( html_entity_decode( $short ) ) . $handle_code . $bcttURL . "' target='_blank'" . $rel . ">" . $short . " </a></span><a href='https://twitter.com/intent/tweet?text=" . rawurlencode( html_entity_decode( $short ) ) . $handle_code . $bcttURL . "' target='_blank' class='bctt-ctt-btn'" . $rel . ">" . $bcttBttn . "</a></div><script async src='//platform.twitter.com/widgets.js' charset='utf-8'></script>";
|
169 |
} else {
|
170 |
|
171 |
+
return "<hr /><p><em>" . $short . "</em><br /><a href='https://twitter.com/intent/tweet?text=" . rawurlencode( html_entity_decode( $short ) ) . $handle_code . $bcttURL . "' target='_blank' class='bctt-ctt-btn'" . $rel . ">" . $bcttBttn . "</a><br /><hr />";
|
172 |
|
173 |
};
|
174 |
}
|
246 |
|
247 |
$bcttlink = plugin_basename( __FILE__ );
|
248 |
add_filter( "plugin_action_links_$bcttlink", 'bctt_options_link' );
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: click to tweet, twitter, tweet, twitter plugin, Twitter boxes, share, social media, post, posts, plugin, auto post, bitly, bit.ly, yourls, yourls.org, translate-me, Español, Deutsch, Russian, Finnish, Svenska, Suomi, Italiano,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -95,11 +95,9 @@ I am active in [the support forums](https://wordpress.org/support/plugin/better-
|
|
95 |
= What are the differences between this plugin and Click To Tweet by Todaymade? =
|
96 |
I originally was planning on contacting Justin at Todaymade to suggest some improvements to the code on his plugin, and in the midst of that, his plugin was unexpectedly pulled from the official repository, for having a (frowned upon) "Powered By" link. So, I set about fully overhauling the plugin.
|
97 |
|
98 |
-
Since that time Justin and the team over at Todaymade have rereleased a version of their plugin without the "Powered By" link. His plugin (which was originally released before the advent of the shortcode API) still doesn't use it, and for that reason is less secure than mine. For him to change to support the shortcode API is a more
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
Also from an end user perspective, I am more active in the support forums than Justin (who has a paid product to support, which justifiably takes more of his time and energy), and you can count on my response and resolution to your issues! <strong>To switch from Justin's plugin to mine, see the tutorial at [BenandJacq.com](http://benlikes.us/8o "migrate to Better Click To Tweet")</strong>
|
103 |
|
104 |
= How can I help? =
|
105 |
I want to maximize the usefulness of this plugin by translating it into multiple languages. So far I have included Spanish and Serbian. If you have experience translating .po files, please consider helping in that way. To include those translations in the official plugin, email me, or submit pull requests at Github.
|
@@ -111,6 +109,11 @@ I want to maximize the usefulness of this plugin by translating it into multiple
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
114 |
= 4.4.1 =
|
115 |
* Fixed CSS issue with spacing in the default theme.
|
116 |
|
4 |
Tags: click to tweet, twitter, tweet, twitter plugin, Twitter boxes, share, social media, post, posts, plugin, auto post, bitly, bit.ly, yourls, yourls.org, translate-me, Español, Deutsch, Russian, Finnish, Svenska, Suomi, Italiano,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 4.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
95 |
= What are the differences between this plugin and Click To Tweet by Todaymade? =
|
96 |
I originally was planning on contacting Justin at Todaymade to suggest some improvements to the code on his plugin, and in the midst of that, his plugin was unexpectedly pulled from the official repository, for having a (frowned upon) "Powered By" link. So, I set about fully overhauling the plugin.
|
97 |
|
98 |
+
Since that time Justin and the team over at Todaymade have rereleased a version of their plugin without the "Powered By" link. His plugin (which was originally released before the advent of the shortcode API) still doesn't use it, and for that reason is less secure than mine. For him to change to support the shortcode API is a more complicated issue, as he'll need to still provide support for how his plugin currently handles the pseudo-shortcode system, or risk breaking every current user's website.
|
99 |
|
100 |
+
I've pushed out over 25 releases with bug fixes, improvements, and additional functionality, while the other plugin remains unchanged. There's no way in which my plugin doesn't live up to it's name.
|
|
|
|
|
101 |
|
102 |
= How can I help? =
|
103 |
I want to maximize the usefulness of this plugin by translating it into multiple languages. So far I have included Spanish and Serbian. If you have experience translating .po files, please consider helping in that way. To include those translations in the official plugin, email me, or submit pull requests at Github.
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 4.5 =
|
113 |
+
* fixed issue causing tweets to display incorrectly on iOS Twitter App (thanks to Cameron Conaway for the bug report in the forums)
|
114 |
+
* Ampersands are now correctly displayed.
|
115 |
+
* began master plan moving toward world domination.
|
116 |
+
|
117 |
= 4.4.1 =
|
118 |
* Fixed CSS issue with spacing in the default theme.
|
119 |
|