Skip to content

Commit 16d9e34

Browse files
committed
Merge branch 'develop' into trunk
2 parents 1913336 + cfc4440 commit 16d9e34

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased] - TBD
88

9+
## [1.1.1] - 2022-04-13
10+
### Fixed
11+
- If Autoshare is enabled by default, it does not consider the post-level "Tweet this post" checkbox and always tweets (props [@iamdharmesh](https://github.com/iamdharmesh), [@Sidsector9](https://github.com/Sidsector9) via [#155](https://github.com/10up/autoshare-for-twitter/pull/155)).
12+
913
## [1.1.0] - 2022-04-13
1014
### Added
1115
- Colored icons to represent autoshare status (props [@linawiezkowiak](https://github.com/linawiezkowiak), [@oszkarnagy](https://github.com/oszkarnagy), [@Sidsector9](https://github.com/Sidsector9), [@dinhtungdu](https://github.com/dinhtungdu) via [#142](https://github.com/10up/autoshare-for-twitter/pull/142)).
@@ -108,6 +112,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
108112
- Initial closed source release (props [@scottlee](https://github.com/scottlee/)).
109113

110114
[Unreleased]: https://github.com/10up/autoshare-for-twitter/compare/trunk...develop
115+
[1.1.1]: https://github.com/10up/autoshare-for-twitter/compare/1.1.0...1.1.1
111116
[1.1.0]: https://github.com/10up/autoshare-for-twitter/compare/1.0.6...1.1.0
112117
[1.0.6]: https://github.com/10up/autoshare-for-twitter/compare/1.0.5...1.0.6
113118
[1.0.5]: https://github.com/10up/autoshare-for-twitter/compare/1.0.4...1.0.5

autoshare-for-twitter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Autoshare for Twitter
44
* Description: Automatically tweets the post title or custom message and a link to the post.
55
* Disclaimer: TWITTER, TWEET, RETWEET and the Twitter logo are trademarks of Twitter, Inc. or its affiliates.
6-
* Version: 1.1.0
6+
* Version: 1.1.1
77
* Requires at least: 4.9
88
* Requires PHP: 7.2
99
* Author: 10up
@@ -20,7 +20,7 @@
2020
}
2121

2222
define( 'AUTOSHARE_FOR_TWITTER', __FILE__ );
23-
define( 'AUTOSHARE_FOR_TWITTER_VERSION', '1.1.0' );
23+
define( 'AUTOSHARE_FOR_TWITTER_VERSION', '1.1.1' );
2424
define( 'AUTOSHARE_FOR_TWITTER_URL', plugin_dir_url( __FILE__ ) );
2525
define( 'AUTOSHARE_FOR_TWITTER_PATH', plugin_dir_path( __FILE__ ) );
2626
define( 'AUTOSHARE_FOR_TWITTER_INC', AUTOSHARE_FOR_TWITTER_PATH . 'includes/' );

includes/admin/post-meta.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,7 @@ function save_autoshare_for_twitter_meta_data( $post_id, $data ) {
146146
foreach ( $data as $key => $value ) {
147147
switch ( $key ) {
148148
case ENABLE_AUTOSHARE_FOR_TWITTER_KEY:
149-
if ( ! empty( $value ) ) {
150-
update_autoshare_for_twitter_meta( $post_id, ENABLE_AUTOSHARE_FOR_TWITTER_KEY, $value );
151-
} else {
152-
delete_autoshare_for_twitter_meta( $post_id, ENABLE_AUTOSHARE_FOR_TWITTER_KEY );
153-
}
149+
update_autoshare_for_twitter_meta( $post_id, ENABLE_AUTOSHARE_FOR_TWITTER_KEY, $value );
154150
break;
155151

156152
case TWEET_BODY_KEY:

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@10up/autoshare-for-twitter",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Automatically tweets a post title, URL, and optional description.",
55
"scripts": {
66
"watch": "webpack -wd --config webpack.gutenberg.config.js",

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: twitter, tweet, autoshare, auto-share, auto share, share, soc
44
Requires at least: 4.9
55
Tested up to: 5.9
66
Requires PHP: 7.2
7-
Stable tag: 1.1.0
7+
Stable tag: 1.1.1
88
License: GPL-2.0-or-later
99
License URI: https://spdx.org/licenses/GPL-2.0-or-later.html
1010

@@ -30,6 +30,9 @@ Yes, yes it does! For more details on this, see [#44](https://github.com/10up/a
3030

3131
== Changelog ==
3232

33+
= 1.1.1 =
34+
* **Fixed:** If Autoshare is enabled by default, it does not consider the post-level "Tweet this post" checkbox and always tweets (props [@iamdharmesh](https://github.com/iamdharmesh), [@Sidsector9](https://github.com/Sidsector9)).
35+
3336
= 1.1.0 =
3437
* **Added:** Colored icons to represent autoshare status (props [@linawiezkowiak](https://github.com/linawiezkowiak), [@oszkarnagy](https://github.com/oszkarnagy), [@Sidsector9](https://github.com/Sidsector9), [@dinhtungdu](https://github.com/dinhtungdu)).
3538
* **Added:** Sample copy for example responses (props [@iamdharmesh](https://github.com/iamdharmesh), [@Sidsector9](https://github.com/Sidsector9), [@jeffpaul](https://github.com/jeffpaul)).

0 commit comments

Comments
 (0)