Skip to content

Commit 96652d9

Browse files
manzoorwanijkmatticbot
authored andcommitted
Social | Make resharing async in classic editor (#40302)
* Social | Make resharing async in classic editor * Update messaging Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12063245228 Upstream-Ref: Automattic/jetpack@ae7252d
1 parent 145fd37 commit 96652d9

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.56.3-alpha] - unreleased
9+
10+
This is an alpha version! The changes listed here are not final.
11+
12+
### Changed
13+
- Social | Made resharing async in classic editor to fix timeout issues
14+
815
## [0.56.2] - 2024-11-26
916
### Fixed
1017
- Social | Fixed undefined index error on atomic sites [#40337]
@@ -776,6 +783,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
776783
- Updated package dependencies.
777784
- Update package.json metadata.
778785

786+
[0.56.3-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.2...v0.56.3-alpha
779787
[0.56.2]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.1...v0.56.2
780788
[0.56.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.0...v0.56.1
781789
[0.56.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.55.2...v0.56.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-i18n', 'wp-polyfill'), 'version' => 'd802b8793465f3d67642');
1+
<?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-i18n', 'wp-polyfill'), 'version' => '06ac1da3e813ea70661e');

build/classic-editor-connections.js

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,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@automattic/jetpack-publicize",
4-
"version": "0.56.2",
4+
"version": "0.56.3-alpha",
55
"description": "Publicize makes it easy to share your site’s posts on several social media networks automatically when you publish a new post.",
66
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/publicize/#readme",
77
"bugs": {

src/class-rest-controller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ public function register_rest_routes() {
126126
return array_map( 'absint', $param );
127127
},
128128
),
129+
'async' => array(
130+
'description' => __( 'Whether to share the post asynchronously.', 'jetpack-publicize-pkg' ),
131+
'type' => 'boolean',
132+
'default' => false,
133+
),
129134
),
130135
)
131136
);

src/js/classic-editor-connections.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@ jQuery( function ( $ ) {
239239
data: {
240240
message,
241241
skipped_connections,
242+
async: true,
242243
},
243244
} )
244245
.then( () => {
245-
showNotice( __( 'Your post has been shared!', 'jetpack-publicize-pkg' ), 'success' );
246+
showNotice( __( 'Request submitted successfully.', 'jetpack-publicize-pkg' ), 'success' );
246247
} )
247248
.catch( () => {
248249
showNotice( __( 'An error occurred while sharing your post.', 'jetpack-publicize-pkg' ) );

0 commit comments

Comments
 (0)