Skip to content

Commit

Permalink
Fix connection test API path for WoA sites (#40732)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk authored Dec 26, 2024
1 parent 21090ec commit 8e4dd7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Social: Ensure that broken connection notices work fine on WoA sites
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ public static function get_supported_services() {
*/
public static function get_api_paths() {

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

if ( $is_simple_site ) {
if ( $is_wpcom ) {
return array(
'refreshConnections' => '/wpcom/v2/publicize/connection-test-results',
'resharePost' => '/wpcom/v2/posts/{postId}/publicize',
Expand Down

0 comments on commit 8e4dd7c

Please sign in to comment.