Skip to content

Commit 2d01601

Browse files
committed
Merge branch 'develop' into trunk
2 parents f867676 + f167876 commit 2d01601

19 files changed

+12567
-130
lines changed

.github/workflows/cypress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
core:
1919
- { name: 'WP latest', version: 'latest' }
2020
- { name: 'WP trunk', version: 'WordPress/WordPress#master' }
21-
- { name: 'WP minimum', version: 'WordPress/WordPress#5.2' }
21+
- { name: 'WP minimum', version: 'WordPress/WordPress#5.3' }
2222

2323
steps:
2424
- name: Checkout

.github/workflows/eslint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: install node v12
18-
uses: actions/setup-node@v1
17+
- name: install node v16
18+
uses: actions/setup-node@v3
1919
with:
20-
node-version: 12
20+
node-version: 16
2121
- name: npm install
2222
run: npm install
2323
- name: Run eslint

CHANGELOG.md

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

77
## [Unreleased] - TBD
88

9+
## [1.2.0] - 2022-09-28
10+
**Note that this release bumps the WordPress minimum from 4.9 to 5.3.**
11+
12+
### Added
13+
- Add AutoTweet panel in editor sidebar and pre-publish panel to manage enabling/disabling tweet on publish (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@linawiezkowiak](https://github.com/linawiezkowiak), [@oszkarnagy](https://github.com/oszkarnagy), [@cadic](https://github.com/cadic) via [#177](https://github.com/10up/autoshare-for-twitter/pull/177)).
14+
15+
### Changed
16+
- Bump minimum required WordPress version to 5.3 (props [@iamdharmesh](https://github.com/iamdharmesh) via [#177](https://github.com/10up/autoshare-for-twitter/pull/177)).
17+
- Updates in CONTRIBUTING.md file (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul) via [#172](https://github.com/10up/autoshare-for-twitter/pull/172)).
18+
- Update plugin icons (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul) via [#174](https://github.com/10up/autoshare-for-twitter/pull/174)).
19+
20+
### Security
21+
- Bump `terser` from 4.3.1 to 4.8.1 (props [@dependabot](https://github.com/apps/dependabot) via [#184](https://github.com/10up/autoshare-for-twitter/pull/184)).
22+
923
## [1.1.2] - 2022-06-24
1024
### Added
1125
- Cypress E2E tests (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@Sidsector9](https://github.com/Sidsector9) via [#167](https://github.com/10up/autoshare-for-twitter/pull/167)).
@@ -125,6 +139,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
125139
- Initial closed source release (props [@scottlee](https://github.com/scottlee/)).
126140

127141
[Unreleased]: https://github.com/10up/autoshare-for-twitter/compare/trunk...develop
142+
[1.2.0]: https://github.com/10up/autoshare-for-twitter/compare/1.1.2...1.2.0
128143
[1.1.2]: https://github.com/10up/autoshare-for-twitter/compare/1.1.1...1.1.2
129144
[1.1.1]: https://github.com/10up/autoshare-for-twitter/compare/1.1.0...1.1.1
130145
[1.1.0]: https://github.com/10up/autoshare-for-twitter/compare/1.0.6...1.1.0

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The develop branch is the development branch which means it contains the next ve
2929
## Release instructions
3030

3131
1. Branch: Starting from `develop`, cut a release branch named `release/X.Y.Z` for your changes.
32-
1. Version bump: Bump the version number in `autoshare-for-twitter.php`, `readme.txt`, `package-lock.json`, `package.json`, and `composer.json`(`autoloader-suffix` config option) if it does not already reflect the version being released.
32+
1. Version bump: Bump the version number in `autoshare-for-twitter.php`, `readme.txt`, `package-lock.json`, `package.json`, and `composer.json`(`autoloader-suffix` config option) if it does not already reflect the version being released. In `autoshare-for-twitter.php` update both the plugin "Version:" property and the plugin `AUTOSHARE_FOR_TWITTER_VERSION` constant.
3333
1. Changelog: Add/update the changelog in `CHANGELOG.md` and `readme.txt`.
3434
1. Props: update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
3535
1. New files: Check to be sure any new files/paths that are unnecessary in the production version are included in `.distignore`.

CREDITS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following individuals are responsible for curating the list of issues, respo
1010

1111
Thank you to all the people who have already contributed to this repository via bug reports, code, design, ideas, project management, translation, testing, etc.
1212

13-
[Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [John Watkins (@johnwatkins0)](https://github.com/johnwatkins0), [Scott Lee (@scottlee)](https://github.com/scottlee), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Stephanie Campbell (@sncampbell)](https://github.com/sncampbell), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Ricky Lee Whittemore (@rickalee)](https://github.com/rickalee), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Lina Wiezkowiak (@linawiezkowiak)](https://github.com/linawiezkowiak), [Oszkar Nagy (@oszkarnagy)](https://github.com/oszkarnagy), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [Barney Jeffries (@barneyjeffries)](https://github.com/barneyjeffries), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Sudip Dadhaniya (@sudip-10up)](https://github.com/sudip-10up), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Max Lyuchin (@cadic)](https://github.com/cadic), [Vikram Moparthy (@vikrampm1)](https://github.com/vikrampm1).
13+
[Adam Silverstein (@adamsilverstein)](https://github.com/adamsilverstein), [John Watkins (@johnwatkins0)](https://github.com/johnwatkins0), [Scott Lee (@scottlee)](https://github.com/scottlee), [Jeffrey Paul (@jeffpaul)](https://github.com/jeffpaul), [Stephanie Campbell (@sncampbell)](https://github.com/sncampbell), [Ryan Welcher (@ryanwelcher)](https://github.com/ryanwelcher), [Ricky Lee Whittemore (@rickalee)](https://github.com/rickalee), [Tung Du (@dinhtungdu)](https://github.com/dinhtungdu), [Lina Wiezkowiak (@linawiezkowiak)](https://github.com/linawiezkowiak), [Oszkar Nagy (@oszkarnagy)](https://github.com/oszkarnagy), [Helen Hou-Sandi (@helen)](https://github.com/helen), [Thrijith Thankachan (@thrijith)](https://github.com/thrijith), [Barney Jeffries (@barneyjeffries)](https://github.com/barneyjeffries), [Darin Kotter (@dkotter)](https://github.com/dkotter), [Siddharth Thevaril (@Sidsector9)](https://github.com/Sidsector9), [Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh), [Faisal Alvi (@faisal-alvi)](https://github.com/faisal-alvi), [Sudip Dadhaniya (@sudip-10up)](https://github.com/sudip-10up), [Peter Wilson (@peterwilsoncc)](https://github.com/peterwilsoncc), [Max Lyuchin (@cadic)](https://github.com/cadic), [Vikram Moparthy (@vikrampm1)](https://github.com/vikrampm1), [GitHub Dependabot (@dependabot)](https://github.com/apps/dependabot).
1414

1515
## Libraries
1616

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ add_filter( 'dt_blacklisted_meta', function( $blacklisted_metas ) {
5757
## Requirements
5858

5959
- PHP 7.2+
60-
- [WordPress](http://wordpress.org) 4.7+
60+
- [WordPress](http://wordpress.org) 5.3+
6161

6262
## Installation
6363

assets/css/admin-autoshare-for-twitter.css

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,16 @@
1212
white-space: normal;
1313
}
1414

15-
.autoshare-for-twitter-prepublish__checkbox .components-base-control__field, .autoshare-for-twitter-prepublish__checkbox-label {
16-
display: flex;
17-
align-items: center;
18-
}
19-
20-
.autoshare-for-twitter-prepublish__checkbox .components-base-control__field {
15+
.autoshare-for-twitter-toggle-control {
2116
margin-top: 0.5rem;
2217
}
2318

24-
.autoshare-for-twitter-prepublish__checkbox-label svg {
25-
margin-right: 0.5rem;
26-
}
27-
28-
.autoshare-for-twitter-prepublish__message-label {
29-
display: flex;
30-
justify-content: space-between;
31-
}
32-
33-
.autoshare-for-twitter-prepublish__checkbox-row input[type=checkbox].components-checkbox-control__input {
34-
margin-right: 0.5rem;
35-
}
36-
3719
.autoshare-for-twitter-prepublish__override-row {
3820
padding: 0.5rem 0;
3921
}
4022

4123
.autoshare-for-twitter-prepublish__override-row .components-button {
42-
margin-bottom: 1rem;
24+
margin-top: 0.5rem;
4325
}
4426

4527
.autoshare-for-twitter-post-status {
@@ -142,3 +124,9 @@ tbody .autoshare-for-twitter-status-logo--enabled::before {
142124
tbody .autoshare-for-twitter-status-logo--disabled::before {
143125
background-image: url('../images/twitter_disabled.svg');
144126
}
127+
128+
.autoshare-for-twitter-pre-publish-panel svg.components-panel__icon,
129+
.autoshare-for-twitter-editor-panel svg.components-panel__icon{
130+
width: 24px;
131+
height: 24px;
132+
}

autoshare-for-twitter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
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.2
7-
* Requires at least: 4.9
6+
* Version: 1.2.0
7+
* Requires at least: 5.3
88
* Requires PHP: 7.2
99
* Author: 10up
1010
* Author URI: https://10up.com
@@ -20,7 +20,7 @@
2020
}
2121

2222
define( 'AUTOSHARE_FOR_TWITTER', __FILE__ );
23-
define( 'AUTOSHARE_FOR_TWITTER_VERSION', '1.1.2' );
23+
define( 'AUTOSHARE_FOR_TWITTER_VERSION', '1.2.0' );
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/' );

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"minimum-stability": "dev",
3131
"config": {
32-
"autoloader-suffix": "10upAutoshareForTwitterV112",
32+
"autoloader-suffix": "10upAutoshareForTwitterV120",
3333
"allow-plugins": {
3434
"dealerdirect/phpcodesniffer-composer-installer": true
3535
}

includes/admin/post-meta.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,21 +259,25 @@ function get_tweet_status_message( $post ) {
259259
// Translators: Placeholder is a date.
260260
'message' => sprintf( __( 'Tweeted on %s', 'autoshare-for-twitter' ), $date ),
261261
'url' => $twitter_url,
262+
'status' => $status,
262263
];
263264

264265
case 'error':
265266
return [
266267
'message' => __( 'Failed to tweet: ', 'autoshare-for-twitter' ) . $twitter_status['message'],
268+
'status' => $status,
267269
];
268270

269271
case 'unknown':
270272
return [
271273
'message' => $twitter_status['message'],
274+
'status' => $status,
272275
];
273276

274277
default:
275278
return [
276279
'message' => __( 'This post was not tweeted.', 'autoshare-for-twitter' ),
280+
'status' => $status,
277281
];
278282
}
279283
}

0 commit comments

Comments
 (0)