Version Description
- fix resolved a bug where Better Click To Tweet was not playing nicely with other plugins that made changes to the title related filters.
- chore unrelated to the plugin, there's so much pollen in the air in South Carolina. You can see it like a cloud. Use promo code CHANGELOG at https://benlikes.us/bcttps
Download this release
Release Info
Developer | ben.meredith@gmail.com |
Plugin | Better Click To Tweet |
Version | 5.10.1 |
Comparing to | |
See all releases |
Code changes from version 5.10.0 to 5.10.1
- assets/block/init.php +1 -1
- better-click-to-tweet.php +3 -3
- readme.txt +8 -2
assets/block/init.php
CHANGED
@@ -38,7 +38,7 @@ register_block_type( 'bctt/clicktotweet', array(
|
|
38 |
'attributes' => apply_filters ( 'bctt_block_attributes' ,array(
|
39 |
'tweet' => array(
|
40 |
'type' => 'string',
|
41 |
-
'default' => get_the_title( get_the_ID() )
|
42 |
),
|
43 |
'username' => array(
|
44 |
'type' => 'string',
|
38 |
'attributes' => apply_filters ( 'bctt_block_attributes' ,array(
|
39 |
'tweet' => array(
|
40 |
'type' => 'string',
|
41 |
+
'default' => !empty( get_the_ID() ) ? get_the_title( get_the_ID() ) : ''
|
42 |
),
|
43 |
'username' => array(
|
44 |
'type' => 'string',
|
better-click-to-tweet.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Better Click To Tweet
|
4 |
* Description: Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
|
5 |
-
* Version: 5.10.
|
6 |
* Author: Ben Meredith
|
7 |
* Author URI: https://www.betterclicktotweet.com
|
8 |
* Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
@@ -12,7 +12,7 @@
|
|
12 |
|
13 |
defined( 'ABSPATH' ) or die( "No soup for you. You leave now." );
|
14 |
|
15 |
-
define ( 'BCTT_VERSION', '5.10.
|
16 |
|
17 |
include 'i18n-module.php';
|
18 |
include 'bctt-admin.php';
|
@@ -95,7 +95,7 @@ function bctt_shortcode( $atts ) {
|
|
95 |
$twitter_handle = get_option( 'bctt-twitter-handle' );
|
96 |
|
97 |
$atts = shortcode_atts( apply_filters( 'bctt_atts', array(
|
98 |
-
'tweet' => get_the_title( get_the_ID() ),
|
99 |
'via' => 'yes',
|
100 |
'username' => $twitter_handle ? $twitter_handle : 'not-a-real-user',
|
101 |
'url' => 'yes',
|
2 |
/**
|
3 |
* Plugin Name: Better Click To Tweet
|
4 |
* Description: Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
|
5 |
+
* Version: 5.10.1
|
6 |
* Author: Ben Meredith
|
7 |
* Author URI: https://www.betterclicktotweet.com
|
8 |
* Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
12 |
|
13 |
defined( 'ABSPATH' ) or die( "No soup for you. You leave now." );
|
14 |
|
15 |
+
define ( 'BCTT_VERSION', '5.10.1' );
|
16 |
|
17 |
include 'i18n-module.php';
|
18 |
include 'bctt-admin.php';
|
95 |
$twitter_handle = get_option( 'bctt-twitter-handle' );
|
96 |
|
97 |
$atts = shortcode_atts( apply_filters( 'bctt_atts', array(
|
98 |
+
'tweet' => !empty( get_the_ID() ) ? get_the_title( get_the_ID() ) : '',
|
99 |
'via' => 'yes',
|
100 |
'username' => $twitter_handle ? $twitter_handle : 'not-a-real-user',
|
101 |
'url' => 'yes',
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: ben.meredith@gmail.com, wpsteward
|
|
3 |
Donate link: https://www.wpsteward.com/donations/plugin-support/
|
4 |
Tags: click to tweet, twitter, tweet,
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 5.10.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -96,6 +96,12 @@ Donations: http://benlikes.us/donate
|
|
96 |
1. Becomes this in your blog post!
|
97 |
|
98 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
= 5.10.0 =
|
100 |
* feature — adding a blank [bctt] shortcode populates the Better Click To Tweet box with the post/page's title.
|
101 |
* bonus — moved to the country. Incorrectly assumed I'd eat a lot more peaches, based on my extensive knowledge of Presidents Of The United States songs from the 90s
|
3 |
Donate link: https://www.wpsteward.com/donations/plugin-support/
|
4 |
Tags: click to tweet, twitter, tweet,
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 5.10.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
96 |
1. Becomes this in your blog post!
|
97 |
|
98 |
== Changelog ==
|
99 |
+
|
100 |
+
= 5.10.1 =
|
101 |
+
* fix — resolved a bug where Better Click To Tweet was not playing nicely with other plugins that made changes to the title related filters.
|
102 |
+
* chore — unrelated to the plugin, there's so much pollen in the air in South Carolina. You can see it like a cloud. Use promo code CHANGELOG at https://benlikes.us/bcttps
|
103 |
+
|
104 |
+
|
105 |
= 5.10.0 =
|
106 |
* feature — adding a blank [bctt] shortcode populates the Better Click To Tweet box with the post/page's title.
|
107 |
* bonus — moved to the country. Incorrectly assumed I'd eat a lot more peaches, based on my extensive knowledge of Presidents Of The United States songs from the 90s
|