Skip to content

Commit 5c1c335

Browse files
manzoorwanijkmatticbot
authored andcommitted
Fix connection test API path for WoA sites (#40732)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12499925952 Upstream-Ref: Automattic/jetpack@8e4dd7c
1 parent 751f3f8 commit 5c1c335

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
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.57.1-alpha] - unreleased
9+
10+
This is an alpha version! The changes listed here are not final.
11+
12+
### Fixed
13+
- Social: Ensure that broken connection notices work fine on WoA sites
14+
815
## [0.57.0] - 2024-12-23
916
### Changed
1017
- Moved wpcom/v2/publicize/connections endpoint to publicize package. [#40607]
@@ -792,6 +799,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
792799
- Updated package dependencies.
793800
- Update package.json metadata.
794801

802+
[0.57.1-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.57.0...v0.57.1-alpha
795803
[0.57.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.5...v0.57.0
796804
[0.56.5]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.4...v0.56.5
797805
[0.56.4]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.3...v0.56.4

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.57.0",
4+
"version": "0.57.1-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-publicize-script-data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ public static function get_supported_services() {
236236
*/
237237
public static function get_api_paths() {
238238

239-
$is_simple_site = ( new Host() )->is_wpcom_simple();
239+
$is_wpcom = ( new Host() )->is_wpcom_platform();
240240

241-
if ( $is_simple_site ) {
241+
if ( $is_wpcom ) {
242242
return array(
243243
'refreshConnections' => '/wpcom/v2/publicize/connection-test-results',
244244
'resharePost' => '/wpcom/v2/posts/{postId}/publicize',

0 commit comments

Comments
 (0)